Questions tagged [bottomsheetdialogfragment]
73 questions
2
votes
2 answers
How to navigate from BottomSheetDialogFragment to another Fragment using JetpackNavigation component
My app is crashing if I try to navigate to another fragment from a bottom sheet dialog fragment.
I am doing this now in bottom sheet dialog fragment:
someButton.setOnClickListener { view ->
val action =…

Ankush
- 175
- 1
- 12
2
votes
0 answers
Inject a ViewModel in a BottomSheetDialogFragment JAVA
I'm using dagger2 in my application and I'm trying to inject a ViewModel into BottomSheetDialogFragment but I don't know how.
I have the BaseApplication class like this:
public class BaseApplication extends DaggerApplication {
@Override
…

Erjon
- 923
- 2
- 7
- 32
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
BottomSheetDialogFragment crashes when themed
I'm using approach with themes to add cornered edges, but bottom sheet crashes app on show.
Here's BottomSheet itself
class MyBottomSheet : BottomSheetDialogFragment() {
override fun onCreate(savedInstanceState: Bundle?) {
…

Wackaloon
- 2,285
- 1
- 16
- 33
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
1 answer
How do I disable dimming of my app when showing BottomSheetDIalogFragment?
I'm currently developing an Android app in Kotlin in which I use a BottomSheetDialog Fragment. Whenever the dialog pops up, the rest of the screen is dimmed. Can I somehow disable this? I don't want to click the screen behind the fragment, I just…

KaraokeKarsten
- 75
- 3
2
votes
0 answers
Animate transitions of DialogFragment using Navigation Component
Is animating transitions of DialogFragment supported by Navigation Component?
My dialog:
2
votes
0 answers
RecyclerView is not visible in bottomsheet fragment
I have one bottom sheet fragment which contains one header, one subheader and one recycler view to show some sort of offer.
Below is the layout.

kartik srivastava
- 103
- 1
- 4
1
vote
1 answer
Modal Bottom sheet not becoming full screen
I want a modal bottom sheet to fill the entire screen minus a custom offset. This is my code: