簡體   English   中英

頂部導航抽屜-Android

[英]Navigation drawer from top - Android

我正在嘗試在我的應用程序中實現導航抽屜。 我知道它也可以在左側和右側制作。 但是,是否可以通過使其從頂部或底部滑入的方式來實現它?

謝謝!

<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>

DrawerLayout沒有使用“底部”或“頂部”重力的官方參考。

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

但您也可以嘗試這樣做,可能會幫助您

https://github.com/umano/AndroidSlidingUpPanel

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM