如果使用 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/