I have bottomsheet that check if the internet connected or not! if no connected the bottomsheet showed, if not the bottomsheet dismiss. I used bottomSheetDialog.dismiss(); function to prevent the user from pressing the screen to hide the bottomsheet. Now what I want is that the user if press back when bottomsheet showed exit the app. not exit bottocheet first and
Tag: android-bottomsheetdialog
What’s simple code/effective code to create CheckBox Programmatically in BottomSheetDialog when click every item in RecyclerView in Android (Java)
I have 100+ item in RecyclerView. these days I have tried to create simple code/effective code to create Checkbox in BottomSheetDialog Programmatically but no success. My goal : Every item click in RecyclerView will show BottomSheetDialog with different amount checkbox. example : when click item[0] in RecyclerView will open BottomSheetDialog with 7 checkboxes, if click item[1] in RecyclerView will open
How can I make the corners of my bottom sheet dialog rounded? [duplicate]
This question already has answers here: Round corner for BottomSheetDialogFragment (28 answers) Closed last year. I’m trying to make the top corners of my BottomSheetDialog rounded, but I haven’t had any luck with anything online. This is what I would like for it to look like: No matter what I’ve tried, I keep getting this: I’ve tried the method here