Questions tagged [bottom-sheet]

Material design concept - bottom sheets slide up from the bottom of the screen to reveal more content.

There are two major types of bottom sheets:

  • Modal bottom sheets are alternatives to menus or simple dialogs. They can also present deep-linked content from other apps. They are primarily for mobile.
  • Persistent bottom sheets present in-app content. Elevation distinguishes modal from persistent bottom sheets. Modal bottom sheets rest at a higher elevation than the app’s content; whereas persistent bottom sheets rest at the same elevation as the app and integrate with its content.

On larger screens, where space is less constrained, using alternative surfaces and components such as simple dialogs and menus may be more appropriate than bottom sheets.

1221 questions
-1
votes
1 answer

Dialog popping up again several times (not a duplicate of any similar question)

So this thing is troubling me since past few days now. I have a dialog in my PostAdapter class. When someone clicks on 'more' menu, a dialog (which appears as a bottom sheet) appears. There is no issue in showing the dialog. It is working perfectly…
-1
votes
1 answer

Android: swipe action in fragment to open bottom sheet dialog

i have a layout like this i want then i swipe up fragment, my bottom sheet will open. How can i do that? I really appreciate your help and hope you have a nice day!
-1
votes
1 answer

How to reflect a common value from a bottom sheet to a fragment?

I'm currently developing an application using android-studio with Kotlin. This app has a common value I can use through fragments a fragment class for main content a fragment class for bottom sheet I want to show a new value on the main…
Tio
  • 944
  • 3
  • 15
  • 35
-1
votes
1 answer

How can I create a fragment with top corners rounded with radius of 8dp in Android?

I have a fragment with collapsible Toolbar layout. I open it as a bottomsheet by applying BottomSheetBehavior to this fragment in frame layout. I want to have rounded top corners for this fragment with 8dp corder radius. How can I achieve it?…
Kanika
  • 714
  • 8
  • 24
-1
votes
1 answer

Android BottomSheet and dynamic Content

I have a bottom sheet, where i can dynamically pass to it the layout id of the layout i want it to show. This works fine! The problem with this is that, to me, it is somewhat cumbersome to assign the listeners I want to every UI element of that…
Victor Benetatos
  • 396
  • 3
  • 12
-1
votes
2 answers

getLayoutParams() from LinearLayout return null

I want to implement a BottomSheetBehavoir component to an activity screen, but when I want to initialize the component via BottomSheetBehavoir.from(view) the getLayoutParams() method throw a null pointer exception. This is my init code in…
developKinberg
  • 363
  • 4
  • 18
-1
votes
2 answers

How to send RecyclerView data to a BottomSheetDialog

I am developing a Recyclerview that pressing a button should open a BottomSheetDialog. I can open BottomSheet but I can't pass data to it. I tried using an interface earlier but it didn't work. class MyAdapter(private val listaItens:…
Vitor Ferreira
  • 1,075
  • 1
  • 14
  • 28
-1
votes
1 answer

Is it possible to open bottomSheetDialog with bottomNavigationBar?

I want to open bottom sheet dialog when i clicked bottom navigation item (Yandex Maps android app like. There is map on background always. Bottom navigation items just open bottom sheet dialog). However i can not do that. Is it possible and if it…
-1
votes
1 answer

Accessing BottomSheetBehaviour from BottomSheetDialogFragment

I want to set the peek height of bottom sheet dialog fragment but I cant define the bottom sheet behaviour in fragment can anyone help me? getDialog() returns null in oncreateview method public class ExampleFragment extends…
Shockelduck
  • 65
  • 1
  • 2
  • 15
-1
votes
1 answer

ListView only renders one item unless height is specified

i have a context-menu with items in a ListView, all contained within a BottomSheet from the ASL/Design lib. The activity's root view is a CoordinatorLayout as specified by BottomSheetBehavior. The problem I'm facing is that the ListView…
xst
  • 2,536
  • 5
  • 29
  • 41
-1
votes
1 answer

Android Bottom Sheet with Listview not working

I'm trying to use a Bottom Sheet with a ListView inside it, but I'm facing two problem, 1st. the ListView doesn't occupy all the space from the Bottom Sheet, the match-parent isn't working, 2nd. scrolling through the list view doesn't really work,…
alb
  • 347
  • 2
  • 7
  • 24
-1
votes
1 answer

Android:How can Create This(Bottom Sheet Like Google Map)?

How can Create This(Bottom Sheet Like Google Map)? I use THIS component but in fragment I can not handle parallax layout for hide toolbar.
sadegh sarvi
  • 164
  • 4
  • 15
-2
votes
1 answer

How can i Add bottom sheet activity android?

How can i add bottom sheet activity?? i cant use fragment cause this is a VPN tool which i am about to reskin, and i wants to load VPN ips from bottom sheet, but whenever i try to load bottom sheet : the layout pops up but VPN ip doesnt shows, it…
-2
votes
1 answer

How to add click listener when user tap on marker(google map) and should show bottom sheet?

When user tap on marker a bottom sheet will appear.I'm not able to do it? Thanks in advance!
-2
votes
2 answers

Linking of navigation drawer with map which show current location is not working

This is the MainActivity package com.example.safna.tracker5; import android.graphics.Color; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import…
1 2 3
81
82