操作栏上的图标优先 [英] Icons priority on action bar
本文介绍了操作栏上的图标优先的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果显示一个操作栏上用几个图标机器人:showAsAction =ifRoom
并没有足够的空间所有图标,机器人如何决定,有什么图标显示?是否有可能设置相对重要性的图标?
If several icons are shown on an action bar with android:showAsAction="ifRoom"
and there is no enough space for all icons, how Android decides, what icon to show? Is it possible to set relative icons importance?
推荐答案
您应该使用的android:orderInCategory
,从的文档:
整数。的项目的重要性,在组内的顺序。
Integer. The order of "importance" of the item, within a group.
这篇关于操作栏上的图标优先的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文