Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Action bar force split tabs and action mode

How to force an ActionBar to split with tabs (at the top) and ActionMode (at the bottom)?
android:uiOptions="splitActionBarWhenNarrow" doesn't help (I'm trying on a widescreen emulator)

like image 264
artem Avatar asked Nov 03 '22 05:11

artem


1 Answers

You'll have better luck testing this in portrait mode, since splitActionBarWhenNarrow is explicitly for narrow (i.e. portrait) orientations.

This design is on purpose - when in landscape mode your vertical real estate is more limited, so it makes sense to make the most use of the greater width of a single action bar rather than taking up twice that space (top and bottom). While the link Ethan provides will lead you to some custom implementation, I suggest reconsidering the design to follow Android design patterns as much as possible. Deviate when you have a really good reason, of course.

like image 96
ProjectJourneyman Avatar answered Nov 11 '22 07:11

ProjectJourneyman