Questions tagged [android-bottomsheetdialog]

205 questions
3
votes
0 answers
3
votes
2 answers

How to prevent bottom sheet from animating corner shape to square?

I've designed my bottom sheet like this And it works fine my bottom sheet comes up with 30dp…
3
votes
1 answer

Adding a menu in Custom BottomSheetDialog Android

The is what i want to have I have a BottomSheetDialog and i have inflated my custom layout on it. But when i try to add the menu to it. It doesn't appear. Discord has the same thing with the menu appearing in the corner as you can see in the image…
3
votes
0 answers

CameraX preview view changes height automatically

I am trying to implement my Preview View inside a BottomSheet. Everything is working fine except that the preview size changes as show in below image. See the image here As you can see the preview is getting out of the bottom sheet while I have set…
3
votes
1 answer

java.lang.IllegalStateException: Fragment already added exception for BottomSheetDialogFragment

In order to show a last state in a BottomSheetDialogFragment I try to implement as below, *) Activity: private var languageSelectorBsFragment: LanguageSelectorBsFragment? = null @OnClick(R.id.txt_imc_clip_language) fun…
3
votes
4 answers

Bottom Sheet button custom style not working

In my BottomSheetDialogFragment, I have a button, I want to make this button background rounded with a grey color border. Here is my rounded background drawable "rounded_tranparent_background.xml":
3
votes
4 answers

Set BottomSheetDialogFragment height to full screen

How do I make a bottomSheet take up the full height of the screen? Setting the peek height has no effect. Any help would be appreciated. bottomSheetDialogFragment.getDialog().setOnShowListener((dialog) -> { final BottomSheetDialog…
VIN
  • 6,385
  • 7
  • 38
  • 77
3
votes
0 answers

Bottomsheet animation not working in some devices

I am using kotlin for create bottomsheet dialog it is working perfect but in some devices its animation from bottom to top not working - My XML code 1. content_bottom_sheet.xml
3
votes
1 answer

How to avoid flickering/blinking while showing or dismissing alertDialog from bottomSheetDialogFragment

While showing/dismissing alert dialog from my BottomSheetDialogFragment there is a blink on screen, How to avoid this? Thanks in advance. AlertDialog alertDialog =…
3
votes
1 answer

android show hide dialogfragment

I have custom DialogFragment which called from another fragment: final CustomCalendarDialogFragment newFragment = new CustomCalendarDialogFragment("CHOOSE_WEEK"); button.setOnClickListener(new View.OnClickListener() { @Override public void…
2
votes
0 answers

How to make synchronized movement of Bottom sheet dialog fragment and keyboard?

I want to make bottom sheet dialog and keyboard synchronized movement in android, kotlin. I start bottom sheet dialog fragment from another fragment by navController: private fun listeners(){ binding.btnBottomSheetDialog.setOnClickListener…
2
votes
1 answer

Is it possible to have non modal blocking behaviour by using BottomSheetDialogFragment?

Currently, we are figuring how to implement such a bottom sheet, with the following requirements. Round corner bottom sheet. Fixed height bottom sheet. Non-draggable bottom sheet. Content in the bottom sheet is scrollable. Hide bottom sheet when we…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
2
votes
2 answers

Why does BottomSheetDialog draw under the navigation bar in landscape?

I am showing a simple Android modal bottom sheet menu. In portrait mode, it works fine, but when the device is rotated to landscape the bottom of the sheet draws under the navigation bar and is hidden. This is using a tablet emulator (Pixel C, API…
2
votes
0 answers

How to get slideOffset in jetpack compose's BottomSheetScaffold widget?

In old way, I can use slideOffset in BottomSheetBehavior.BottomSheetCallback. But now in Jetpack compose, I can't use slideOffset. How to get it?
boybeak
  • 417
  • 5
  • 19
2
votes
1 answer

BottomSheetListener throws null pointer exception even after initializing it below in onAttach

I'm creating a modal bottom sheet which will get the filtering criteria from the user. I want to use it with Fragment (HomeFragment), and get the button selected from the BottomSheet inside my HomeFragment by passing the string values inside the…
1 2
3
13 14