I have implemented a layout with the BottomSheetBehaviour
and set have set the behavior_peekHeight
as 300dp and behavior_hideable
as true
.
Code Sample
<FrameLayout
android:id="@+id/sheet_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/map_view_height"
android:background="@color/white"
app:behavior_hideable="true"
app:behavior_peekHeight="300dp"
app:behavior_skipCollapsed="true"
app:layout_behavior="@string/bottom_sheet_behavior">
<include layout="@layout/sheet_content_layout"/>
</FrameLayout>
Here I'm able to hide the layout with dragging to the bottom. But once I have dragged the layout to the bottom, I couldn't drag it back to it's original peek height. How can I do that?