1

我正在尝试在我的应用程序中实现导航抽屉。我知道它也可以在左侧和右侧进行。但是是否有可能以从顶部或底部滑入的方式实现它?

谢谢!

<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

</android.support.v4.widget.DrawerLayout>
4

1 回答 1

6

没有官方参考 DrawerLayout 使用“底部”或“顶部”重力看看这里

http://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html#openDrawer%28int%29

但你也可以试试这个,它可能会帮助你

https://github.com/umano/AndroidSlidingUpPanel

于 2014-02-28T13:23:24.953 回答