简体   繁体   中英

Android bottom navigation bar and tablets

According to Material design guidelines, we should use left navigation instead of bottom navigation bar for tablets. I could not find orientation setting of layout in android.support.design.widget.BottomNavigationView as well as separate LeftNavigationView , so please tell me right way to implement left navigation bar for both tablets and phones. Should i write my own view for this instead of using BottomNavigationView from design library? Thanks in anvance.

在此输入图像描述

Currently, BottomNavigationView does not meet tablet material design specification. Please open issue at b.android.com for missing feature.

Until then, I encourage you to try my BottomNavigationLayout or do some research for any other implementations out there.

You can use Material Drawer Library and create navigation drawer very similar to gmail application solution. If you don't want use 3rd party library, the simplest way is create custom component.

经过一番研究后,我决定使用Iiro Krankka的实现https://github.com/roughike/BottomBar

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