Flipboard / bottomsheet

Android component which presents a dismissible view from the bottom of the screen
BSD 3-Clause "New" or "Revised" License
4.53k stars 594 forks source link

bottomsheet shows only partial layout #177

Closed mayuroks closed 7 years ago

mayuroks commented 7 years ago

I have a regular LinearLayout with a recycler view and a button below it. The problem is when I show bottomsheet using myBottomSheet.showWithSheetView(sheet) it shows recyclerview completely but the button is only partially visible.

I have to pull the bottom sheet up to see the button completely. I don't want this bottomsheet behaviour. I want bottomsheet to fully show all elements in my layout.

Can anyone suggest a solution?

markrietveld commented 7 years ago

You can set how far the bottomsheet peeks in pixels by calling setPeekSheetTranslation. You can also trigger the sheet to open completely by calling expandSheet() right after showWithSheet.