将 ActionBar.NAVIGATION_MODE_TABS 与 ActionBar.NAVIGATION_MODE_LIST 一起使用
我正在创建一个应用程序,我想在操作栏上使用下拉列表导航和选项卡导航。但我无法弄清楚如何在不将操作栏实现为自定义视图的情况下执行此操作,这会弄乱许多不错的内置功能。
那么同时获得这两种导航模式的最佳方法是什么?
I am creating an app where i would like to use both the drop down list navigation and tab navigation on an actionbar. But i can not figure out how to do this without implementing the actionbar as a custom view which would mess up a lot of the nice built in features.
So what is the best way to get both of these navigation modes at the same time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Android 不会为您构建这两者。您可以使用 ViewPagerIndicator 库为 ViewPager 制作模拟选项卡栏,这可能是最简单的方法。
Android will not build both of these for you. You can use the ViewPagerIndicator library to make an emulated tab bar for a ViewPager, which is probably the easiest way to do this.