Apps Action Icons not Displayed on Action Bar

ac4android

Well-Known Member
Hi.

I am using AS version 1.5.1 and I am having trouble getting the action icons to display on the action bar. I've tried using API 17 and API 21, but neither worked. The icons are in their respective drawable-etc directories...

In the XML, I've specified <item... app:showAsAction="ifRoom" />

I read something about a Google bug placing the icons in the "overflow area", does anyone know how to force the icons to show on the action bar?

Yes, the vertical dot-dot-dot does display the action items and does work well with my intents.



PS:
I cannot get the "share action" icon to display on the action bar either.
I have made the following change <item... app:showAsAction="always" />, but still not displaying the icons.

PPS
In styles.xml <style name="AppTheme" parent="android:Theme.Material.Light">
In styles-v21.xml <style name="AppTheme" parent="android:Theme.Holo.Light">
Icons still missing from action bar and no error messages either.
 
Last edited:
Top