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)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With