简体   繁体   English

顶部导航抽屉-Android

[英]Navigation drawer from top - Android

I am trying to implement navigation drawer in my app. 我正在尝试在我的应用程序中实现导航抽屉。 I know it can be made on the left and right side as well. 我知道它也可以在左侧和右侧制作。 But is it possible to implement it in such a way that it will slide in from the Top or bottom? 但是,是否可以通过使其从顶部或底部滑入的方式来实现它?

Thanks! 谢谢!

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

There is no official reference for DrawerLayout to use "Bottom" or "Top" Gravity look at here DrawerLayout没有使用“底部”或“顶部”重力的官方参考。

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

but you can try this also, It may hlp you 但您也可以尝试这样做,可能会帮助您

https://github.com/umano/AndroidSlidingUpPanel https://github.com/umano/AndroidSlidingUpPanel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM