Wednesday, January 23, 2013

[android-developers] optimizing actionBar display in portrait mode

I've got a app with tabbed navigation.

I'd like to optimize the space when in portrait mode.

so i disabled the title and icon.

        actionBar.setDisplayShowHomeEnabled(false);
        actionBar.setDisplayShowTitleEnabled(false);

but i have a menu.

in landscape mode - it displays the tabs on the same row as the menu icon.

in portrait mode - the menu icon gets displayed on a row below the tabs by
itself.

obviously not very optimal.

is there anyway to display in portrait as it's done in landscape.

i.e. tabs and menu icon on a single row.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate