How to change the Option menu icon in the Action Bar?

£可爱£侵袭症+ 提交于 2019-12-13 17:09:00

问题


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.

Thanks !


回答1:


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>



回答2:


Here is the officialy documentation telling you how to customize the action bar to the up most.

Customizaing the action bar



来源:https://stackoverflow.com/questions/8506184/how-to-change-the-option-menu-icon-in-the-action-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!