如何更改操作栏的选项菜单图标? [英] How to change the Option menu icon in the Action Bar?
本文介绍了如何更改操作栏的选项菜单图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在蜂巢,当选项隐藏(不ifRoom),他们是在选项菜单中显示的微调。 我只是想知道如何更改此选项的菜单图标(最右侧)。 默认情况下,该图标仅仅是三线和3点在ICS。
On Honeycomb, when the options are hidden (not ifRoom), they are displayed in a Spinner in an option menu. I simply would like to know how to change the icon of this option menu (furthest to the right). By default, the icon is just three lines and 3 dots on ICS.
谢谢!
推荐答案
查看更多属性从Android SDK安装在平台/ Android的-XX /数据/ RES /价值/ style.xml
See more attributes from your android sdk installation, in platforms/android-XX/data/res/values/style.xml
下面是菜单溢出操作按钮样式定义:
Here is menu overflow action button style definition:
<style name="Widget.Holo.ActionButton.Overflow">
<item name="android:src">@android:drawable/ic_menu_moreoverflow_holo_dark</item>
<item name="android:background">?android:attr/actionBarItemBackground</item>
<item name="android:contentDescription">@string/action_menu_overflow_description</item>
</style>
这篇关于如何更改操作栏的选项菜单图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文