Questions tagged [android-bottomsheetdialog]
205 questions
2
votes
3 answers
Unable to set BottomSheetDialog initial height
I'm trying to set a height peek from which the dialog must start, then the user if dragged should be able to expand it, the issue is that in any case the bottomsheet initial state get half of screen.
The BottomSheet looks like this:

NiceToMytyuk
- 3,644
- 3
- 39
- 100
2
votes
3 answers
BottomSheetDialog not rounding top corners correctly in Android
I have a custom BottomSheetDialog and for its layout i created drawable which has top corners rounded rectangle. BottomSheetDialog layout background is a Linearlayout and i applied drawable to the layout.Top corners of the bottom sheet rounding…

ISHAN KALANSOORIYA
- 145
- 2
- 9
2
votes
1 answer
How to create Reusable Android BottomSheet Presentation
I have a bunch of popup Dialogs throughout the app I'm working on. What I wanted to do is turn them all into a BottomSheet presentation. Right now, I have one class where I'm instantiating the Dialogs from and able to reuse them throughout the…

JuJu Juned
- 134
- 8
2
votes
1 answer
BottomSheet is not hiding when navigating between different fragments
Hello there I have a bottomsheet with some textViews (as button) when pressed it navigates to a diffrent fragment but the issue is when textView is pressed and navigated to the fragment still the bottom sheet is not hiding evantually have to tap on…

Vasant Raval
- 257
- 1
- 12
- 31
2
votes
1 answer
How to navigate from bottomsheet to activity
I have a bottomsheet implemented in my app. I used inflater to show the bottomsheet dialog, here is my code in NewSignUpActivity to show the bottomsheet dialog.
class NewSignUpActivity : AppCompatActivity() {
private lateinit var…

Lovely Joy Figueras
- 81
- 1
- 9
2
votes
1 answer
How to add top handle to bottom sheet in android?
I want to achieve this. Can anyone help me how to add this handle on top of bottom sheet?

Prosenjith Roy
- 179
- 1
- 1
- 9
2
votes
1 answer
Navigating from BottomSheetFragment with Jetpack Navigation results with crash 'Action can not be found from current destination'
This case might be a unique one because I do have some complicated navigation logic and I'm using extension functions(which I will share below shortly).
Imagine having a Fragment(A) opening a BottomSheetFragment(B)
And the BottomSheetFragment(B)…

Aydinozkan
- 2,508
- 2
- 21
- 26
2
votes
5 answers
How to exit the app when bottomsheetdialog showing
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…

Moataz
- 495
- 3
- 20
2
votes
0 answers
BottomSheetDialogFragment removes corners when swiped up even though it is not covering full screen
I want to have a BottomSheetDialogFragment where I can select an item from a few items. I want it to never go full screen. I want rounded corners at top left and top right.
For the purposes above, I have implemented an…

Mehmed
- 2,880
- 4
- 41
- 62
2
votes
1 answer
Custom BottomSheet Behavior | More States | AndroidX
I want to be able to add more states to my current BottomSheet with multiple custom heights.
Right now, the AndroidX bottom sheet only has the following states: STATE_HIDDEN, STATE_HALF_EXPANDED, STATE_EXPANDED, STATE_COLLAPSED, STATE_DRAGGING,…

Cerulean.Source
- 133
- 1
- 4
2
votes
0 answers
BottomSheetDialogFragment- Close only on full swipe Kotlin Android
I have a BottomSheetDialogFragment to show list of items inside a fragment. Each list item got a click event mapped. The problem here is, most of the times click action turns into swipe down action and BottomSheetDialogFragment is getting closed. I…

Joseph
- 1,060
- 3
- 22
- 53
2
votes
1 answer
Rounded corners not working with Material Design Bottomsheet Android
I am using Material Design Library 1.1.0 and trying to implement rounded corners on Bottomsheet. Here is my code
Style-