Skip to content

Icon-only ActionBar docs/examples need to be beefed up #3

@BobDickinson

Description

@BobDickinson

When adding an icon-only ActionBar control in Android, you must specify showActionAs to either "always" or "ifRoom" in order to get the control on the main ActionBar.

The idea is you can have items on the main ActionBar, and these should specify an icon (you can have text only, but it looks like ass). Or you can have them on the secondary drop down menu from the ActionBar, where you must have text (and the icon is ignored). I decided in my infinite wisdom to default to requiring text and I putting the item on the secondary menu. If you want an icon control on the top-level ActonBar, then you specify the icon attribute and set the showAsAction to "Always" (or "IfRoom" if that's how you roll).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions