Questions tagged [bottom-sheet]

0

votes
0

answer
14

Views

BottomSheet hides when outside content changes

I have a viewgroup with BottomSheetBehaviour from MaterialComponents (the sheet content is clickable, hidable) The layout included in parent (CooridnatorLayout)
0

votes
0

answer
4

Views

Angular - Open Bottom Sheet (MatBottomSheet) inside parent container

I'm trying to open a material bottom sheet inside a div container, as default it's opening as the last element inside the body. Looking at the documentation, I need to use the viewContainerRef, but I can't make it work. This is similiar to what I'm trying to do: app.component.html: ... ... app.compo...
ET-CS
1

votes
0

answer
157

Views

Collection view cells overlap animation in Bottomsheet

I need to apply animation like the bottom sheet where Collection View cells overlap each other when closed, and wide opened when bottom sheet is opened. I have achieved the bottom sheet with Collection View with pagination, but need to apply animation that shows only current cell and other cells beh...
Nasir Khan
1

votes
1

answer
111

Views

Android - Bottom Sheet peekview hidden

As said in the title, I have a problem with my bottom sheet. What I want in my bottom sheet is a RecyclerView with dynamic items that can change anytime. There is also components before and after the RecyclerView. For convenience, I put a fragment in the bottom sheet. Here is my bottom sheet : And...
Kazuya
1

votes
1

answer
395

Views

How to extend bottomsheet till the bottom of toolbar, and not under the toolbar?

I have bottomSheetLayout and when it goes to extended mode to goes under toolbarLayout, while I want to reach till the toolbar? I set layout_height as match_parent do I need to calculate height in class and set it deviceHeight-toolbarheight and set as bottomSheet layout height? and I have problems w...
I.S
1

votes
0

answer
82

Views

RecyclerView + NestedScrollView + BottomSheetBehavior = bad performance?

Using Support library 27.1.1. I have a NestedScrollView with BottomSheetBehavior. Inside the bottom sheet layout I have LinearLayout with a header view at the top, then a RecyclerView at the bottom. The RecyclerView is populated with 10-20 custom views with heavy onDraw methods. The whole idea of h...
l33t
1

votes
0

answer
43

Views

Android BottomSheet Expandeding to Maximum Height

I have a BottomSheet in my activity. I'm calling BottomSheet by behavior.setState(BottomSheetBehavior.STATE_EXPANDED); it expands to full screen but I want it to expand to almost half screen and later on I want to drag it to full Screen. I just want this feature when i call for BottomSheet.
1

votes
0

answer
383

Views

BottomSheetDialogFragment: how to prevent NavigationBar dimming

in my theme for API 27 I want to have a white navigation bar, which works fine, but when I show my bottomSheetDialogFragment the system dimmend my navigation bar like in a Dialog. Is it without the new components from the new material theme possible to prevent the dimming from the navigation bar? He...
Denis Schura
1

votes
1

answer
271

Views

How to adjust size of BottomSheet with Edittext and button below it?

I want to build a BottomSheet to display a view with button and edit text. If I click on the Edittext the Keyboard shows up but it hides the button which is below the edit text. These pics should show my problems 1)BottomSheet in normal view-First Image 2)BottomSheet hides the button- Second Image...
1

votes
0

answer
518

Views

Bottomsheet Error : The view is not a child of CoordinatorLayout

I want to create a layout in which 80% of the Screen Contains separate layout and 20% contains the bottom sheet vertically. But when i try to do it, it gives me error 'The view is not a child of CoordinatorLayout'. I got the error, but i can't figure out some other way to do it. Can Someone please h...
Tushar Pingale
1

votes
0

answer
165

Views

Android Quick Settings like implementation with Bottom Sheet

I need to implement custom view just like quick settings available in notification panel with my items. I have done some R&D part which I will share over here. As this thing is to be accomodated at the bottom of the screen so I have integrated inside bottom sheet view. Before that I will add the scr...
Akash
1

votes
0

answer
105

Views

IllegalArgumentException: Wrong state class expecting View State but received

I'm getting crashes on crashlytics. Couldn't figure the problem and line of exception. I have coordinatorlayout having id rootCoordinator. On button, showing bottomsheet dialog. java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.support.design.widg...
AskQ
1

votes
1

answer
437

Views

BottomSheet animation duration

I am using the BottomSheet view for one of my layouts. For a very specific case, I need the animation duration of the BottomSheet which slides in the layout via the setState(...) method. It should be something around 400ms but I would prefer not to have a 'magic' number for that case.
Mordag
1

votes
1

answer
626

Views

How to pass result from BottomSheetDialogFragment to Activity which started it?

I have attached BottomSheetDialogFragment to one of my fragment.In that bottom sheet ,I have given option open gallery open camera For Open gallery private void startGallery() { Intent intentGallery = new Intent(baseActivity, SelectImage.class); intentGallery.putExtra('LIMIT', 10); startActivityFo...
stack Learner
1

votes
0

answer
32

Views

Persistent bottom sheet

I have Persistent bottom sheet that include frame. I want to make full screen bottom sheet but I can't. activity_main.xml ActivityMain.java public class ActivityMain extends AppCompatActivity { BottomSheetBehavior bottomSheetBehavior; Button openF1, openF2, modal; @Override protected void onCreate(B...
Mr K
1

votes
0

answer
175

Views

How to scroll Recylerview inside bottom sheet while keeping bottom sheet in desired state?

I have a persistent bottom sheet inside coordinate layout. I have set bottomsheethideable = true and implemented BottomSheetBehaviour callbacks. Currently, bottom sheet opens in the collapsed mode and when I am scrolling recylerview inside view pager of bottomsheet . BottomSheet also scrolled up tha...
Sunny Dhiman
1

votes
2

answer
47

Views

notifydatasetchanged is not working on adapter

From this adapter i am showing a dialog for payment but after payment submission it not get updated. how can i update the views? public class PersonDebtDetailsAdapter extends RecyclerView.Adapter{ private Context mContext; private final LayoutInflater mLayoutInflater; private final List mDebtList; p...
Rohit Kumar
1

votes
2

answer
276

Views

How to inject a ViewModel into BottomSheetDialogFragment with Dagger2?

I inject my dependencies in Activities and Fragments on the preferred way with AndroidInjection.inject(this). I have the recommended ViewmodelFactory to inject the viewmodel. My injections are working in Activities and Fragments. However I face a problem with BottomSheetDialogFragment, because I am...
codeme
1

votes
0

answer
126

Views

FAB gets in front of expanding Bottom Sheet

I have a FloatingActionButton on the top left of my layout and a BottomSheetBehavior on the bottom of the CoordinatorLayout. The BottomSheetBehavior is actually inside aNavigationFragment` destination. If my FloatingActionButton has any android:elevation different then 0, then when the BottomSheetBe...
mFeinstein
1

votes
0

answer
124

Views

Bottomsheet and button animation like in Google Map

I want to achieve same animation behavior in Android as Google map where bottomsheet slides with buttons anchored to the top of it for a while. After attaining certain height bottomsheet slides over the buttons. I was able to anchor the button to the top of bottomsheet by using layout_anchorGravity=...
Colin11
1

votes
0

answer
109

Views

NestedScrollView inside BottomSheet

I have a NestedScrollView inside a BottomSheet. The problem is just sometimes NestedScrollView doesn't work and dragging on it detaches BottomSheet and starts dragging it. Is there a bug in NesterScrollView?
AVEbrahimi
1

votes
0

answer
73

Views

Let Draggable behave like a Bottom Sheet

I'm using a Draggable to create my own Bottom Sheet which contains some Textfields, but I'm facing some Problems: I want to restrict the draggable area so the sheet can't be moved higher then the height of the sheet (Like a normal bottom sheet) Textfields are blocked by the keyboard (Draggable doesn...
Dario Digregorio
1

votes
0

answer
55

Views

BottomSheetDialogFragment is not showing up

I've followed this tutorial to implement BottomSheetDiaogFragment in my android application. this is my bottom sheet layout (bottom_sheet.xml): BottomSheetDialogFragment class: class BottomSheetTaskRepeat : BottomSheetDialogFragment() { override fun onCreateView(inflater: LayoutInflater, container:...
Soroush Lotfi
1

votes
1

answer
121

Views

BottomSheetDialogFragment memory leak (use leakcanary)

I found a Memory Leak in my PopupDialog, but I do not know why. So I commented out all the overridden methods, but I still got a leak. BottomSheetDialog class PopupDialog : BottomSheetDialogFragment() { // Annotated all methods and variable. } Activity fun showPopupDialog() = PopupDialog().show(sup...
dylan.kwon
1

votes
2

answer
58

Views

Bottom sheet view not able to expand completely after google material lib update?

Earlier I was using the alpha 03 lib in which I was able to expand the bottom sheet view when the app is launched . implementation 'com.google.android.material:material:1.1.0-alpha03' After an update to alpha 04 .I found out the code I was using earlier is not working and only partial view is vi...
Ravi Parmar
1

votes
3

answer
85

Views

Implement BottomSheet in Application

I am trying to implement BottomSheet to my application. I am learning android. I have implemented it as per instruction given in library page here. I have used java code like below. findViewById(R.id.butShare).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ne...
Rajubhai Rathod
1

votes
1

answer
2.7k

Views

Android - Scroll and Bottom Sheet in CoordinatorLayout

first of all I am not familiar with CoordinatorLayouts, I have a fragment that contain several scrollable CardViews, when I tried to add a bottom sheet I got the Bottom Sheet must be a child of a coordinatorLayout error, so I added a coordinatorLayout and now I can't seem to be able to scroll anymor...
1

votes
1

answer
1.5k

Views

BottomSheet custom behavior - above BottomBar

I want to display BottomSheet above my BottomBar. So I have to write custom BottomSheet behaviorthat will put my BottomSheet above my BottomBar - the BottomBar has shy behavior (hidding during scrolling). There is what I tried to implement: public class BottomSheetBehavior extends android.support.d...
Sandak
1

votes
1

answer
444

Views

BottomSheetDialogFragment not modal

Is it possible to make BottomSheetDialogFragment not modal? That means no dimming of underlying content, and not blocking the interaction with it also. Maybe only via classical fragment?
luky
1

votes
1

answer
5.2k

Views

Bottom Sheet Swipe Down Behavior

I have successfully created a ListView within a Fragment. From the list I have also managed to successfully load a bottom sheet. If I tap the first item on the list 'One' the bottom sheet appears. If I tap outside the bottom sheet, the bottom sheet disappears. If I tap the second item on the list '...
Ibrahim Fawaz
1

votes
1

answer
455

Views

BottomSheetDialogFragment keeps reappearing at onResume

I show a BottomSheetDialogFragment with the following code: BottomSheetDialogFragment bottomSheetDialogFragment = new MediaAddFragment(); bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag()); getActivity().getSupportFragmentManager().executePe...
Battlestr1k3
1

votes
1

answer
1.9k

Views

BottomSheet with RecyclerView

I have a RecyclerView (A). When I select an item a second RecyclerView(B) appears as BottomSheet. The problem is when I scroll the RecyclerView B I can see that the RecyclerView A is scrolling too. How can I fix this? The root layout is CoordinayorLayout.
Benjamin Kusicky
1

votes
1

answer
413

Views

How to show BottomSheet by pulling from the bottom edge of the screen?

I'm quite new to Android's BottomSheet and I've successfully tried out examples on how to use it but most examples only demonstrate showing/hiding the BottomSheet through View click events. For now I have the following code: BottomSheetBehavior mBottomSheetBehavior; @Override protected void onCreat...
jdnessity
1

votes
2

answer
190

Views

BottomSheetBehaviour can't collapse on view pager

I have 3 Fragment's page inside viewpager. In Fragment contains BottomSheetBehaviour. The default state that i set is STATE_EXPANDED. In every page, I do dragging the panel to make it collapse. Here the scenario : In page 1 : dragging the panel to bottom (The state changes to STATE_COLLAPSE) In page...
Sarudu Matra
1

votes
1

answer
118

Views

How to code a BottomSheet like view that can be dismissed upwards or downwards

I've been searching all over the internet over the last couple of days, to no avail. I'm trying to code something like a BottomSheetDialog that can be dismissed (swiped out of view) either upwards or downwards. If such a view would be coded from scratch, the use case would be as follows: The view fi...
Christian Wheeler
1

votes
1

answer
2.4k

Views

Bottomsheet takes full screen

I am trying not to have a BottomSheet that populates whole screen but to leave some space above when it expanded. Here is my code which onExpand populates whole screen. bottomSheetBehavior = BottomSheetBehavior.from(bottomLayout); bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED); bo...
Jay
1

votes
2

answer
1.2k

Views

Android bottom sheet dos not collapse

I'm trying to create a simple Bottom Sheet layout, One button shows and other collapse, but its not working. I was following this tutorial but still nothing.So I'm trying to pass the state inside of buttons and then pass into the callback method to hide or expand, and the bottom sheet can't be scrol...
Nathiel Barros
1

votes
1

answer
1.6k

Views

android - Bottom sheet like uber app

I was studying the Bottom Sheet, and I built something like this from the tutorial of this link. I was wondering how I could put together something similar to what the Uber app does. It's a bottom sheet, which when expanded seems to be a new activity. Does anyone know how to create something similar...
LMaker
1

votes
1

answer
188

Views

BottomSheetBehavior not draggable if i do not set peekHeight

In my app I have a bottom sheet and a button that makes it collapse/expand. If peekHeight is not set the bottom sheet is not draggable and does not collapse, it is always visible. Here is the code: View bottomSheet = findViewById(R.id.bottom_sheet1); mBottomSheetBehavior1 = BottomSheetBehavior.from(...
mike_x_
1

votes
2

answer
224

Views

IllegalArguementException - State Arguement : 5 on BottomSheet

I am facing this issue using a BottomSheet with GoogleMap. When cicked on any marker, I show the BottomSheet. mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { mBottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSE...
The Bat

View additional questions