CopyPastor

Detecting plagiarism made easy.

Score: 0.8396749816683561; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2019-06-30
by Ejaz Ahmad

Original Post

Original - Posted on 2019-06-30
by Ejaz Ahmad



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Create a custom style
<style name="AppBottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog"> <item name="bottomSheetStyle">@style/AppModalStyle</item> </style> <style name="AppModalStyle" parent="Widget.Design.BottomSheet.Modal"> <item name="android:background">@drawable/rounded_corner_top_only</item> </style>
then override this method in the custom fragment.

@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); //bottom sheet round corners can be obtained but the while background appears to remove that we need to add this. setStyle(DialogFragment.STYLE_NO_FRAME,R.style.AppBottomSheetDialogTheme); }
This is working with me hopefully it will work with you.
Create custom style like below.
<style name="AppBottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog"> <item name="bottomSheetStyle">@style/AppModalStyle</item> </style> <style name="AppModalStyle" parent="Widget.Design.BottomSheet.Modal"> <item name="android:background">@drawable/rounded_corner_top_only</item> </style>
then override this method in the custom fragment.
@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); //bottom sheet round corners can be obtained but the while background appears to remove that we need to add this. setStyle(DialogFragment.STYLE_NO_FRAME,R.style.AppBottomSheetDialogTheme); }
This is working with me hopefully it will work with you.


        
Present in both answers; Present only in the new answer; Present only in the old answer;