android - How to change option menu icon in the action bar? -



android - How to change option menu icon in the action bar? -

how alter index icon of alternative menu?

i mean icon (3).

here code:

@override public boolean oncreateoptionsmenu(menu menu) { menuinflater inflater = getmenuinflater(); inflater.inflate(r.menu.options, menu); homecoming true; }

and here xml file:

<item android:id="@+id/bugreport" android:title="@string/option_bugreport" /> <item android:id="@+id/info" android:title="@string/option_info" /> <item android:id="@+id/about" android:title="@string/option_about" />

<!-- application theme. --> <style name="apptheme" parent="appbasetheme"> <!-- customizations not specific particular api-level can go here. --> <item name="android:actionoverflowbuttonstyle">@style/myactionbuttonoverflow</item> </style> <!-- style replace actionbar overflow icon. set item 'android:actionoverflowbuttonstyle' in apptheme --> <style name="myactionbuttonoverflow" parent="android:style/widget.holo.light.actionbutton.overflow"> <item name="android:src">@drawable/ic_launcher</item> <item name="android:background">?android:attr/actionbaritembackground</item> <item name="android:contentdescription">"lala"</item> </style>

this how can done. if want alter overflow icon in action bar

android android-actionbar android-menu android-optionsmenu android-icons

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -