Questions tagged [bottomsheetdialogfragment]
73 questions
0
votes
2 answers
how to hide soft key in bottom sheet dialog in android
I'm tryin to hide soft key on a bottom clicked in bottom sheet dialog fragment.
I already tried this :
try {
val view: View? = requireActivity().currentFocus
if (view != null) {
…

Omid Kzm
- 78
- 5
0
votes
2 answers
Cannot change Button background after applying BottomSheetDialogFragment background
I needed rounded corners on my BottomSheetDialogFragment so I applied a custom drawable as its background. But after applying a custom background the button on the BottomSheet is not accepting a custom background. It just displays a white…

itsdrnoob
- 5
- 4
0
votes
1 answer
How to make BottomSheetDialog fullcreen when expanded and make button attached at bottom of it?
Problem
I need to use BottomSheetDialog (com.google.android.material.bottomsheet) for my apps, but it didn't work as i expected, Bottom Sheet Appear cut when it expanded.
My Implementation
inline fun …

Joseph Sanjaya
- 741
- 1
- 7
- 9
0
votes
3 answers
Get value from BottomSheetDialogFragment
i have a fragment (A), where 3 actions are available. When the user select one action, before doing that, i need to ask him the password he used to login. I would like to do that using BottomSheetDialogFragment, but i don't know how to make the…

giordy16
- 275
- 1
- 12
0
votes
2 answers
Prevent dismissal of BottomSheetDialogFragment if keyboard is visible
I have a use case where a BottomSheetDialogFragment is having an edit text and this edit text is in focus. And keyboard is open on top of BottomSheetDialogFragment. The requirement is when a user clicks outside of dialog, first keyboard should be…

Sahil Gupta
- 101
- 6
0
votes
1 answer
Send Parent View to a child (BottomSheetDialogFragment)
today I'm wondering if it's possible to do this. I mean, when I load a child view send the parent view. In another words I want to handle the parent when I'm on the child.
Parent View
imgFilter.setOnClickListener {
…

Antonio Labra
- 1,694
- 2
- 12
- 21
0
votes
0 answers
BottomSheetDialog alignment of views when using the same layout to show full view and half view
I have a layout (named mirroring.xml) and I need to use it in two different activities. First activity, needs the content to be displayed based on the full length and width of the android mobile. The second activity uses layout to show only half the…

Angus
- 12,133
- 29
- 96
- 151
0
votes
1 answer
Prevent BottomSheetDialogFragment from hiding keyboard
If I have keyboard opened in current activity/fragment, when I present the BottomSheetDialogFragment, keyboard gets dismissed, but I want the keyboard to stay up in the background behind the BottomSheetDialogFragment. Is there a way to keep keyboard…

coolcool1994
- 3,704
- 4
- 39
- 43
-1
votes
1 answer
Issue with the BottomSheetDialogFragment in - Android
I was just upgrading the old android project and everything I have done properly and at the last I am just getting below error :
2022-07-21 15:19:06.548 19455-19455/com.brian.skyazul E/USNET: USNET: appName: com.packagename
2022-07-21…

Jaimin Modi
- 1,530
- 4
- 20
- 72
-1
votes
1 answer
SwitchCompats are checked incorrectly after Dark/Light Mode recreates the app
I have four switches in my BottomSheetDialogFragment. When I make DarkMode 'On', the app is recreated. The weird thing is that other switches became 'On' even if those were 'Off' before. (The value in SharedPref is 'false' but the Switch shows…

Mona Baharlou
- 1,401
- 1
- 13
- 26
-1
votes
1 answer
While using VideoView in BottomSheetDialogFragment, Video is loading always at the top
I want to load video in VideoView which is in BottomSheetDialogFragment of having 140dp height, but when I open dialog then video is playing at the top of screen
BottomSheetDialogFragment:
XML code:

piyushpk
- 91
- 10
-2
votes
1 answer
BottomSheetDialogFragment In Tablet Landscape
It is possible to change the width of a BottomSheetDialogFragment (material design) width? In tablet landscape mode, the width is match_parent. Thank you

Ronald Barrera
- 3
- 1
- 2
-3
votes
1 answer
want to create BottomSheetDialogFragment Like Atttache One
i want my bottomsheet to behave like attached image in stages like default,dragged and close.

Chirag Thummar
- 665
- 6
- 16