Questions tagged [android-bottomsheetdialog]
205 questions
14
votes
4 answers
How to prevent BottomSheetDialogFragment from dismissing after a navigation to another fragment?
I am using NavigationComponent on my App.
I have an specific flow where after a click on a button of BottomSheetDialogFragment the app should navigate to another fragment. But when that Fragment is popped I need to navigate back to the previous…

Augusto Carmo
- 4,386
- 2
- 28
- 61
14
votes
8 answers
How to set max height in BottomSheetDialogFragment?
I have a BottomSheetDialogFragment and i need to set my height in this dialog. I need, that when user tap on a button, dialog will appear and fills 85% of screen. How to do this?
user11163395
12
votes
3 answers
How to adjust dialog layout when soft keyboard appears using the latest WindowInset API
Question:
How to use the latest WindowInset API to adjust space betweeen my dialog and softkeyboard?
I have a BottomSheetDialog with some EditText. The default animation will show the soft keyboard right below my EditText which will cover my save…

JosephW
- 253
- 1
- 2
- 10
10
votes
3 answers
Android BottomSheet gray grapple/handle bar
I've seen this sort of gray handle bar decoration on BottomSheets in a few popular apps. This is a screenshot of a BottomSheet in Google Maps. Notice the gray handle/gripper at the top of the BottomSheet.
What is the best way to implement a…

VIN
- 6,385
- 7
- 38
- 77
10
votes
4 answers
Customization Bottom Sheet Dialog's View
I just want to get the BottomSheetDialog like below: margin from the system window. How can I get like this?

KyawLinnThant
- 617
- 1
- 9
- 20
9
votes
2 answers
How to properly use Jetpack Compose inside BottomSheetDialogFragment?
For example, I have MyBottomSheetDialogFragment with Compose LazyColumn code in the application:
class MyBottomSheetDialogFragment : BottomSheetDialogFragment() {
override fun onCreateView(
inflater: LayoutInflater,
container:…

Mike
- 321
- 4
- 10
9
votes
4 answers
How to use View Binding on BottomSheetDialog
I'm trying to make a BottomSheetDialog inside my MainActivity, but right now I'm using synthetic to bind my views. But now I'm stuck with how to attach ViewBinding to my BottomSheetDialog.
Here's what I do, using synthetic.
dialog =…

Josh Adrian
- 126
- 1
- 9
9
votes
3 answers
Bottom Sheet Dialog jumps up after populating RecyclerView
I have run into a peculiar issue. The flow of the app is as below:
Trigger bottom sheet dialog.
The dialog fragment makes an api call to
the server.
A spinner is displayed while waiting for the response
When response is received, the Recycler view…

Puneet
- 653
- 1
- 7
- 18
7
votes
1 answer
How to display another fragment on top of BottomSheetDialogFragment
Is there any way to display fragment on top of DialogFragment? When my BottomSheetDialogFragment is shown after some action I need to display another fragment (not type of dialog fragment) without dismiss of the that dialog, I tried to remove dim…

Jemo Mgebrishvili
- 5,187
- 7
- 38
- 63
7
votes
2 answers
Detail explanation of all states in BottomSheetBehavior Android
There are around six different states in BottomSheetBehavior. I did not get any proper explanation of them.
Like I don't understand difference between STATE_HIDDEN and STATE_COLLAPSED?
Similarly what is difference between STATE_SETTLING and…

Ritik Kumar
- 81
- 1
- 3
6
votes
1 answer
Sometimes BottomSheetDialogFragment opens in center of screen like alert dialog
I have BottomSheetDialogFragment which required to open in expanded state and should skip collapsed state while swipedown.
The problem is, I get unexpected behavior sometimes
Why I am getting this kind of view sometimes?
here below is my code for…

Amrish Kakadiya
- 974
- 1
- 7
- 25
6
votes
4 answers
How can I make the corners of my bottom sheet dialog rounded?
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 and…

Spencer Beaumont
- 135
- 1
- 1
- 7
6
votes
1 answer
Android: Double clicking fast on any views related to Navigation component crashes the app
I have an app built with navigation component. I have a field in my graph which slide up a bottom sheet dialog fragment upon cliking on a filter icon on the toolbar. However, if i double click really fast on the toolbar filter icon or click really…

Mervin Hemaraju
- 1,921
- 2
- 22
- 71
5
votes
1 answer
Compose BottomSheetScaffold IndexOutOfBoundsException application crash
I searched for a solution related to this issue but found nothing. I solved the problem so I'm posting the problem and the solution here with goal of helping someone.
Problem description
After updating Jetpack Compose from version 1.2.0-beta02 to…

mr. Gauss
- 601
- 6
- 14
5
votes
2 answers
How to change scrim to invisible in bottomsheet dialog fragment?
I have implemented bottomsheet using bottomsheetdialogfragment. But default it's having dimming effect (Scrim). How to remove or change that dimming effect(scrim) to invisible, so that I can see other UI elements clearly.
Here is the layout I…

Muthukumaaran Chandramohan
- 236
- 4
- 15