【发布时间】:2015-10-07 03:55:23
【问题描述】:
【问题讨论】:
【问题讨论】:
查看发布在 github 上的代码:https://github.com/umano/AndroidSlidingUpPanel。
您可以在滑动菜单中设计自己的视图。
<com.sothree.slidinguppaneldemo.SlidingUpPanelLayout
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="My Content"
android:textSize="16sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center|top"
android:text="Another Content"
android:textSize="16sp" />
</com.sothree.slidinguppaneldemo.SlidingUpPanelLayout>
【讨论】:
最简单的方法是使用像 https://github.com/umano/AndroidSlidingUpPanel 这样的库
但是自从 google 发布了 CoordinatorLayout 和 Behavior 我建议你看一下,虽然它有点新而且更难做。
【讨论】: