Hi there,

ICS has introduced the split action bar.  I would like to know if
there is a way to programmatically choose which action item icon to
display based on whether it will be in the non-split action bar (as in
API 11 to 13) or in the split action bar (on narrow devices using API
14+), since I have two very different styles for the two cases.  I
have a dark background action bar and a light background split action
bar.

If my action item icons are to be displayed on the dark action bar on
the top, then the icons should be white; if instead my action items
are to be displayed on the light split action bar, then their icons
should be black.  If I could somehow use a state selector that would
be really nice.  However I checked both of the following links and
they don't seem to be available.

http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList
http://developer.android.com/guide/topics/resources/menu-resource.html#item-element

Please let me know what might be the suggested way to do this?  Thanks
in advance.


David

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to