Questions tagged [android-bottomsheetdialog]
205 questions
0
votes
1 answer
Custom View is not drawing in BottomSheetDialogFragment, when sometimes onSizeChanged is called after invalidate
I'm developing a custom graph view, displayed in a bottom sheet dialog fragment and it is not drawing, when I add data and call invalidate() before onSizeChanged() is called. This happens some times and I don't know how to solve that.
I add the Data…

the_dani
- 2,466
- 2
- 20
- 46
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
0 answers
How to make bottom sheet dialog able reach height till top of screen
I recently created a bottom sheet in my app, whose height is enough to fit the screen. But when I run the app and open the bottom sheet dialog, it doesn't open up till the top (I mean up-to it's maximum height, due to which some of it's bottom…

costomato
- 102
- 2
- 8
0
votes
1 answer
Not able to open dialog again after image selection from it
I have a Fragment where I opening bottom dialog
private void openImageDialog() {
NavController navController = findNavController(view);
Timber.d("%s", navController.getCurrentDestination());
…

Illia
- 158
- 1
- 10
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
2 answers
How to remove white space from BottomSheetDialog when adding a fake shadow?
I'm using this SO answer to simulate elevation on my BottomSheetDialogFragment because elevation doesn't work with it.
https://stackoverflow.com/a/40927770/11110509
However when I add that fake shadow, there is unwanted white space unlike that SO…

DIRTY DAVE
- 2,523
- 2
- 20
- 83
0
votes
1 answer
BottomsheetDialog not styled nor localized
I have a Bottomsheetdialog, that wont change to darkmode nor change language. Am i doing something wrong? The onclick listener is working tho.
kotlin code:
private fun outsideDoorModalShow() {
val bottomSheetDialog =…

Meyben
- 451
- 3
- 15
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
Is there a way we can jump just the edittext not the complete layout when keyboard opens?
I am trying with bottom sheet dialog fragment, but whenever the keyboard opens the layout also jumps in fragment like recyclerview, already tried with adjustPan and adjustNothing but no success.
Can anyone please help me out ( Need something similar…

Android Guy
- 573
- 1
- 8
- 18
0
votes
0 answers
Opening a Fragment from a BottomSheetDialogFragment - Android Studio Java
I am trying to open a fragment from a Bottom Sheet, however when I run the app and click the button in the Bottom Sheet that is supposed to do this, the app crashes.
The Build failure that shows up is:
Deprecated Gradle features were used in this…

Tanay N
- 17
- 8
0
votes
1 answer
BottomSheetDialogFragment jumps on top of status bar, when any view's size changes or EditText receives focus
In my BottomSheetDialogFragment I use this option (fitsSystemWindows = false) to fix strange effect while scrolling to bottom example gif (MapView is on top of navigation bar)
override fun onActivityCreated(savedInstanceState: Bundle?) {
…

Jemo Mgebrishvili
- 5,187
- 7
- 38
- 63
0
votes
1 answer
Android BottomSheetDialogFragment hides behind keyboard
I want to show my BottomSheetDIalogFragment on top of the screen when keyboard open. I search in web and found some solutions but no one can not solve my problem. I add
android:windowSoftInputMode="adjustResize"
to my AndroidMnifest.xml. My dialog…

Behrooz Fard
- 536
- 4
- 26
0
votes
1 answer
how to show website in Bottonsheetdialog android studio
how to show a web page with webview in BottonSheetDialog !
like this
click here for see example image

farid
- 300
- 1
- 8
0
votes
1 answer
android - Hide or close BottomSheetDialog on item menu click (Kotlin)
Im currently working on an app, which has a BottomSheetDialog as navigation menu. This menu, is called by the Toolbar Navigation Item.
When calling the BottomSheetDialog, it shows up, and clicking on an item of the list creates the related activity,…

Meltix
- 436
- 6
- 22