Skip to content

Comment on Why I'm No Metrosexualparent

Comments

You can provide labels with action bar action items inline instead of just relying on a long press to get a popup hint by using android:showAsAction="ifRoom|withText" on any menu item in the menu XML. You can also do this programmatically.

The big downside to this is that one phone devices you basically will only be able to show 1 action item with an overflow menu since you'll run out of space with just the first action item. The best work around is to make actions very obvious based on the icon used for the action item. You could also consider moving non-obvious UI behaviors into the main content of the page where there is more room for labeling.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.