android - 操作栏上的图标优先级

标签 android resources

如果使用 android:showAsAction="ifRoom" 在操作栏上显示多个图标并且没有足够的空间容纳所有图标,Android 如何决定显示什么图标?是否可以设置相对图标的重要性?

最佳答案

你应该使用 android:orderInCategory,来自 docs :

Integer. The order of "importance" of the item, within a group.

关于android - 操作栏上的图标优先级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12916777/

相关文章:

excel - 如何下载到 Excel?

java - Eclipse - 从 Linux 导入到 Windows 的项目未加载资源

java - Java/Android 中的 Firebase : The transaction was overridden by a subsequent set

android - Android MIT App Inventor:将视频从可移植摄像机共享到Youtube

android - NoClassDefFoundError:解析失败:Landroid/support/v4/os/BuildCompat;

android - HERE Android SDK NavigateManager 在没有 map 的情况下模拟不提供操作

eclipse - 如何从 Eclipse 插件刷新资源?

c++ - 如何在 VC++ 静态库中加载自定义二进制资源作为 dll 的一部分?

android - 即使按下锁定按钮也能保持屏幕上的 Activity

android - 高效使用 Android 资源