Questions tagged [android-bottomsheetdialog]
205 questions
0
votes
0 answers
I want to click on a button that is under (behind) the BottomSheetDialogFragment. Is it possible to do this?
I want to click on a button that is under (behind) the BottomSheetDialogFragment. Is it possible to do this? (see diagram)
I am also interested in the question, is it possible for the BottomSheetDialogFragment to collapse not completely but half…

Liker Of Programming
- 5
- 1
- 2
0
votes
0 answers
Better approach: conditionally add/remove views or change visibility
I want to use a BottomSheetLayout for different cases like as a SearchBar with search results when user is actively searching and also to show a RecyclerView with different items, buttons, etc. when user is not searching.
In general, this requires…

Erkan
- 140
- 2
- 11
0
votes
2 answers
How to disable/skip STATE_EXPANDED on BottomSheetDialog (make STATE_HALF_EXPANDED the maximum)?
This question may seem a little bit odd, but let me explain my problem.
I have a BottomSheetDialogFragment with rounded top corners. When I fully expand my dialog those corners will be filled automatically. I want the height to be more or less…

keplusplus
- 16
- 3
0
votes
1 answer
ModalBottomSheetLayout content is not get centered, as well as sheet content
Based on what was answered in this question (Open ModalSheetLayout on TextField focus instead of Keyboard) and the exchange of comments I did with @Abhimanyu, I was able to get the ModalBottomSheetLayout to appear when I click on one of the…

R0ck
- 409
- 1
- 15
0
votes
1 answer
Open ModalSheetLayout on TextField focus instead of Keyboard
I am working with Jetpack Compose and I have a page with several TextFields, where I want that, in several of them, when I click on the input, instead of appearing the keyboard, a ModalSheetLayout appears with different layouts that I have. Is this…

R0ck
- 409
- 1
- 15
0
votes
0 answers
App crashes on theme changed when bottom sheet is opened
I have a bottom sheet which I inflate to display a restaurant product detailed information.
class ProductItemInfo(private val product: Product) : BottomSheetDialogFragment() {
private var _binding: DialogProductInfoBinding? = null
private…

Ankit Verma
- 496
- 5
- 21
0
votes
1 answer
Android bottom sheet dialog how to set scrim animation
I noticed that by default, when a bottom sheet dialog is shown, the scrim just pop up without any animation, which is not a good user experience. So I was wondering how to show the scrim with animation. Any suggestion?

Fever
- 157
- 2
- 9
0
votes
3 answers
Inflating BottomSheetDialog from an item click in a RecyclerVIew?
I have implemented a method that launches the BottomSheetDialog but I am facing this error
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
at…

Sam Kabiru
- 75
- 8
0
votes
1 answer
How add Bottom Modal Sheet within a Dialog Composable?
Opened by clicking a FAB, I have an Add Item Dialog which includes an option to assign an image to the shopping list item. Is it possible to implement a Bottom Modal Sheet with options for camera capture, etc. at the bottom of the Dialog?

Raj Narayanan
- 2,443
- 4
- 24
- 43
0
votes
1 answer
Android Bottom Sheet is not working in Fragment
I have added the bottom sheet dialog on a fragment.
Right now I can't open it.
Whenever I click on the show button it doesn't work at all.
How can I fix this problem?
CreateFragment.kt
class CreateFragment : Fragment() {
lateinit var binding:…

Tanjil Sarwar Lazim
- 29
- 1
- 4
0
votes
1 answer
How to give margin on left and right to Bottom Sheet build using BottomSheetDialogFragment?
I want to give margins to the bottom sheet dialog on left and right. I tried a few methods but unfortunately not working.
I have a bottom sheet which opens up when I move to one of the fragment using Bottom Navigation.
Bottom Navigation :
This is…

oyeraghib
- 878
- 3
- 8
- 26
0
votes
1 answer
How to set BottomSheetDialogFragment to fullScreen?
I'm trying to make my BottomSheetDialogFragment to be fullscreen when it's opened, the issue is that in any case the Dialog is shown half of screen height.
I've tried to set the peekHeight as the following:
override fun onViewCreated(view: View,…

NiceToMytyuk
- 3,644
- 3
- 39
- 100
0
votes
0 answers
How do I access the style attributes of my App theme in my BottomSheet theme?
I'm using style attributes throughout my app to support multiple themes. But now I'm facing an issue while creating a bottom sheet.
I'm not able to use my app theme's attributes (Such as ?attr/colorPrimary and ?attr/primaryTextColor) within my…

rdias002
- 214
- 2
- 9
0
votes
1 answer
How to apply bottom sheet for multiple text in jetpack compose?
I am try to learning jetpack compose those days, so I want to learning bottom sheet in jetpack compose, I do it just for one text, but I want to use it for multiple text, I have one example here, but I am not sure how to implement to my project, is…
user10991969
0
votes
1 answer
Use different style for same item for different activity in android studio (Please read description)
I am working on a project wherein I want to use BottomSheetDialog in different activities. But for different activities I want the Dialog to have diffrent background drawable. I have set the background drawable in themes.xml but that makes the…

SIDDHARTH SINGH
- 138
- 3
- 8