将 ActionBar.NAVIGATION_MODE_TABS 与 ActionBar.NAVIGATION_MODE_LIST 一起使用

发布于 2025-01-01 17:24:46 字数 119 浏览 3 评论 0原文

我正在创建一个应用程序,我想在操作栏上使用下拉列表导航和选项卡导航。但我无法弄清楚如何在不将操作栏实现为自定义视图的情况下执行此操作,这会弄乱许多不错的内置功能。

那么同时获得这两种导航模式的最佳方法是什么?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

玩心态 2025-01-08 17:24:46

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文