[英]Android Material Design Bottom Navigation and Drawer combined
I'm wondering if I should combine the material design Bottom Navigation and the Navigation Drawer. 我想知道是否应该将材质设计底部导航和导航抽屉结合起来。
As is understand there is always one item active in the Bottom Navigation Bar, but what if I choose to navigate to a page using the Navigation Drawer menu? 可以理解,底部导航栏中始终有一个活动项,但是如果我选择使用“导航抽屉”菜单导航到页面怎么办? How do I preserve navigation consistency.?
如何保持导航的一致性? The Bottom Navigation item will still be active even if I navigated to a different activity/fragment.
即使我导航到其他活动/片段,“底部导航”项仍将处于活动状态。
I was thinking about setting all Bottom Navigation items to inactive in case a user navigates using the Navigation Drawer. 我正在考虑将所有“底部导航”项设置为非活动状态,以防用户使用“导航抽屉”进行导航。 Unfortunately, the lib I'm using ( https://github.com/pocheshire/BottomNavigationBar ) doesn't support this.
不幸的是,我正在使用的库( https://github.com/pocheshire/BottomNavigationBar )不支持此功能。
How does the Bottom Nav Bar coexist with the Navigation Drawer? 底部导航栏与导航抽屉如何共存? What am I missing here?
我在这里想念什么?
Looking at the design guidelines , it's pretty clear that the navigation drawer is at a higher z-level (hence higher hierarchy). 查看设计指南 ,很显然导航抽屉位于较高的z级别(因此具有较高的层次结构)。 Think of bottom navigation as essentially a replacement for tab layouts.
将底部导航视为实质上是选项卡布局的替代。 You can look at the Google Photos application as an example.
您可以以Google Photos应用程序为例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.