How do i change the Overflow Menu icon on the far right of the action bar as seen in the image below? My Holo theme specifies this 3 row black stack icon by default and i want something else. i can't seem to find a solution for this. I have looked at the documentation on http://developer.android.com/guide/topics/ui/menus.html but it doesn't seem to lend much help.
Thanks!
Duplicate question, Changing overflow icon in the action bar
This is my answer as below,
Change your custom overflow icon of Actionbar in styles.xml
Put custom theme "MyTheme" in application tag of AndroidManifest.xml
Have fun.@.@
Define a custom style: for example, let's call it
customoverflow
.In this style you set
android:src
to the picture you would like to use. Now create a style with parentTheme.holo
.In this style you need to define:
I just tested this and it works.
I noticed that it becomes white if the theme of the app is Holo, but it is blackish when the theme is Holo.Light
However, changing the style of the action bar to inherit from Holo and the rest of the app from Holo.Light does not solve the problem, but it should point in the direction of which style you should be modifying.
What I have tried is:
I have the same problem and I think this is close to a solution
You can try something like this:
and in AndroidManifest.xml
Shalafi's solution works with a few changes! You will need to specifiy theme.Holo as the parent for the theme but it has the downside of changing the default text color(at least in my styles).
The amended code should be:
Basically Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml
, while customizations related to backward-compatibility can govalues/styles.xml
Shalafi's solution works with a few additions:So add this code to both
res/values-vXX/styles.xml
andres/values/styles.xml
and this will work like Magic!also add it in AndroidManifest.xml