【发布时间】:2017-12-03 18:59:26
【问题描述】:
我正在我的应用程序中实现BottomNavigationView,但我所见过的任何教程都没有说明这一点。
我应该使用
这两种方法的优缺点是什么(对于BottomNavigationView,当然不是一般情况下,我可以 RTFM),是否有谷歌或老聪明的程序员推荐的另一种(在the doc 虽然)?
【问题讨论】:
标签: android android-fragments bottomnavigationview
我正在我的应用程序中实现BottomNavigationView,但我所见过的任何教程都没有说明这一点。
我应该使用
这两种方法的优缺点是什么(对于BottomNavigationView,当然不是一般情况下,我可以 RTFM),是否有谷歌或老聪明的程序员推荐的另一种(在the doc 虽然)?
【问题讨论】:
标签: android android-fragments bottomnavigationview
我应该使用 FrameLayout(如这里),让我的片段出现和消失,还是使用 ViewPager(如这里),让我的片段像 TabLayout 一样滑动?
前者。 The material design specs expressly indicate that you should not swipe between bottom navigation。 (参见“滚动”)。
引用:
在内容区域上使用滑动手势不会在视图之间导航。
【讨论】:
ViewPager 并禁用动画吗?