Questions tagged [android-bottomsheetdialog]
205 questions
5
votes
0 answers
BottomSheetDialog with ConstraintLayout containing NestedScrollView having height match_constraint rendered with actual 0px height
I have a very simple layout that I need to render into a BottomSheetDialog. The layout is just a scrolling view containing just TextViews and a button below the scrolling view (so the button is fixed at the bottom and always visible.)
This is just a…

David Pisoni
- 3,317
- 2
- 25
- 35
5
votes
0 answers
How to get the transition completion callback between fragments
So this question is similar: How to know when enter transition ended on Fragment?
But I do not set transition by myself and it's not a shared transition. So I can't get transition object for attaching my listeners.
Background:
I used…

AmirKonovalov
- 121
- 1
- 4
5
votes
3 answers
How to dismiss Bottom Sheet fragment when click outside in Kotlin?
I make bottom sheet fragment like this:
val bottomSheet = PictureBottomSheetFragment(fragment)
bottomSheet.isCancelable = true
bottomSheet.setListener(pictureListener)
bottomSheet.show(ac.supportFragmentManager, "PictureBottomSheetFragment")
But…

vida kamalifar
- 51
- 4
4
votes
2 answers
Prevent/Disable BottomSheetScaffold from being swiped/dragged
I have a BottomSheetScaffold(), on button push the bottomsheet is coming up, all is working fine, but i want to prevent the user from swiping down the bottomsheet. Instead a button on the bottomsheet is use to close it on click.
I see the option…

saro
- 705
- 3
- 13
4
votes
0 answers
How to scroll to selected item in a LazyColumn within a ModalBottomSheetLayout with Jetpack Compose?
I have a places list that it can be selected via ModalBottomSheetLayout. These places are in a LazyColumn inside the ModalBottomSheetLayout.
When I open the ModalBottomSheetLayout clicking in 'Open place Selector' to select a new place, I would like…

RMH
- 169
- 1
- 14
4
votes
1 answer
How to drag down a BottomSheet view from inside a NestedScrollView?
I have inside my BottomSheet view a NestedScrollView and I want to drag down the bottomSheet when scrolling down from the nestedScrollview but it is not working.
My XML code is like below :

Mohamed Jihed Jaouadi
- 1,427
- 4
- 25
- 44
4
votes
0 answers
Translucent navigation bar with BottomSheetDialog
I'm fighting for a proper navigation bar coloring on targetSdk=30 in my BottomSheetDialog when going edge-to-edge. I set the light navigation bar option via code here:
override fun onAttachedToWindow() {
super.onAttachedToWindow()
val…

Thomas Keller
- 5,933
- 6
- 48
- 80
4
votes
4 answers
Prevent Bottom Sheet Dialog Fragment from showing twice when i double tap
Hello am having a Bottom Sheet Dialog Fragment that is show when an item in a recyclerview is clicked. The showing of the bottom sheet implementation is in an adapter for the recyclerview. The problem am having is that when you quickly double tap on…

Emmanuel Njorodongo
- 1,004
- 17
- 35
4
votes
1 answer
Pass data from Bottom Sheet Dialog Fragment to Fragment
I am using a BottomSheetDialogFragment class with Navigation Architecture component. I am following the Single activity pattern and therefore i have only one activity and several fragments. Below is my code.
BottomSheetDialogFragment.kt
class…

Mervin Hemaraju
- 1,921
- 2
- 22
- 71
4
votes
2 answers
How to change BottomSheetBehavior of BottomSheetDialogFragment?
I have a modal BottomSheetDialog. Current and the default behavior of the dialog is, when I drag the dialog down by half, it dismisses. E.g assume the dialog value is from 0.0 (Collapsed) to 1.0 (Expanded). So when user drags it down to 0.5, it…

Hayk Mkrtchyan
- 2,835
- 3
- 19
- 61
4
votes
7 answers
Adding margin to BottomSheetDialogFragment
I've tried adding margin to my BottomSheetDialogFragment, however it doesn't do anything for the margins.

DIRTY DAVE
- 2,523
- 2
- 20
- 83
4
votes
3 answers
EditText not showing, typing text on Bottom sheet dialog
In bottom sheet dialog, we have some editext's . When typing those edittext typing can possible but after typing the typing text is not showing also not showing the edittext cursor.
When screen touch / scroll edittext is updating. I think its my…

Abhijith KP
- 41
- 5
3
votes
1 answer
BottomSheetDragHandleView only accessible in material design demo
I'm using the github repository project for testing purposes and I stumbled accross BottomSheetDragHandleView which displays a handle bar in the demo license (see link for the code):
The issue I am having is that using the the similar layout…

igodie
- 497
- 1
- 4
- 16
3
votes
1 answer
How to allow drag only on part of the SheetPeek of a BottomContent in BottomSheetScaffold?
The dragging part is possible on whole rectangle (Yellow in video) and I want it to be only allowed on the Grey icon
I can drag any part of the yellow part, whether up or down, I want to allow that behavior of dragging only on the Grey part
Left…

devMohaned
- 135
- 6
3
votes
3 answers
I can't find ModalBottomSheetLayout in material3 with jetpack compose?
Update
We finally have BottomSheet in Material3 follow this ans Link
Recently I created a project using `material3` with `jetpack compose` but when I tried to import `ModalBottomSheetLayout` but I couldn't find it. Is there any `alternate in…

Jeevan Rupacha
- 3,055
- 1
- 15
- 29