答案 0 :(得分:1)
结帐BottomSheetBehavior
。
您可以将布局放在主要活动中或使用片段:
<android.support.design.widget.CoordinatorLayout ...>
<android.support.design.widget.AppBarLayout...>
<android.support.design.widget.CollapsingToolbarLayout...">
<android.support.v7.widget.Toolbar... />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_layout" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:fitsSystemWindows="true"
app:behavior_hideable="false"
app:behavior_peekHeight="0dp"
app:layout_behavior="@string/bottom_sheet_behavior">
(desired view here)
</FrameLayout>
</android.support.design.widget.CoordinatorLayout>
了解更多: