1. Are you ready for the Galaxy S20? Here is everything we know so far!

Action Icons not Displayed on Action Bar

Discussion in 'Android Development' started by ac4android, Feb 3, 2016.

  1. ac4android

    ac4android Well-Known Member
    Thread Starter

    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.
     


    #1 ac4android, Feb 3, 2016
    Last edited: Feb 3, 2016

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Action Icons Displayed
  1. App Update
    Replies:
    0
    Views:
    349
  2. Hamard
    Replies:
    1
    Views:
    385
  3. dfghyyt37
    Replies:
    1
    Views:
    351
  4. Pavchik
    Replies:
    1
    Views:
    373
  5. Stickrunningsupreme
    Replies:
    2
    Views:
    323
  6. AnastasiaFLG
    Replies:
    1
    Views:
    674
  7. App Update
    Replies:
    0
    Views:
    344
  8. printdev
    Replies:
    2
    Views:
    349
  9. MainFragger
    Replies:
    2
    Views:
    1,127
  10. App Update
    Replies:
    0
    Views:
    558

Share This Page

Loading...