Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split Action Bar with AppCompat v7 using Material Design?

Is it possible to have the App Compat ActionBar split when targeting API 21?

Right now I have had all activities include

 android:uiOptions="splitActionBarWhenNarrow"

and have meta-data:

 <meta-data android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />

And my theme Base is Theme.AppCompat

but for some reason this has absolutely no effect making the action bar split.

like image 240
kandroidj Avatar asked Nov 20 '14 18:11

kandroidj


1 Answers

There is no split action bar support for Material themes or AppCompat v21. You can certainly create your own bottom action bar via a Toolbar added to your layout, but you have to manage combining the controls on >600dp configurations yourself.

like image 153
ianhanniballake Avatar answered Sep 16 '22 18:09

ianhanniballake