简体   繁体   中英

Android Navigation Drawer Layout

In Landscape Mode I want to create navigation drawer which is placed at the bottom left of screen and the drawer opens from bottom to top .......Is this possible to create...........??

I have uploaded the picture below according to which I want to create navigation drawer in landscape

自定义导航抽屉这可以创建吗???

Is this possible to create...........??

Yes possible.

I will tell you how you can achieve this.

  1. You have to have two layout for portrait and landscape layout.
  2. For portrait view you can user navigation drawer as simple as that
  3. For landscape you can use the BottomSheet from support library that you can swipe up and down like navigation drawer & on click of button of hamburger you can open bottom sheet

See example for BottomSheet

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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