使 Honeycomb ActionBar 与 ICS 兼容

发布于 2024-12-19 10:32:42 字数 234 浏览 3 评论 0原文

我有一个现有的应用程序,它在操作栏中有几个选项卡和按钮。我想将其移植到 ICS,我关心的是这些项目将如何堆叠在 ICS 设备上?

所有的 showAsAction="ifRoom|withText" 都会隐藏到菜单中吗?或者它会像 ICS Gmail 应用程序那样在底部创建一个新的操作栏吗? 在此处输入图像描述

I've an existing app which has couple of tabs, buttons in the actionbar. I want to port it to ICS, My concern is how will the items stack up on the ICS device?

Will all of the showAsAction="ifRoom|withText" be hidden into menu? or will it make a new actionbar at the bottom like ICS gmail app does it.
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

阳光①夏 2024-12-26 10:32:42

操作将堆叠在顶部,如果没有足够的空间,操作将被隐藏。
如果您拆分操作栏,那么它们将出现在底部
您必须配置应用程序标签才能将其配置为拆分

  <application android:label="@string/app_name"
    android:icon="@drawable/icon"
    android:logo="@drawable/logo"
    android:theme="@style/AppTheme.Light"
    android:hardwareAccelerated="true"
    android:debuggable="true" android:uiOptions="splitActionBarWhenNarrow">

Actions will stack up at the top, and be hidden if there is not enough space.
If you Split the Action Bar then they will come at the botton
You have to configure the Application tag to configure it to be split

  <application android:label="@string/app_name"
    android:icon="@drawable/icon"
    android:logo="@drawable/logo"
    android:theme="@style/AppTheme.Light"
    android:hardwareAccelerated="true"
    android:debuggable="true" android:uiOptions="splitActionBarWhenNarrow">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文