拆分操作栏使用材料设计AppCompat V7? [英] Split Action Bar with AppCompat v7 using Material Design?
本文介绍了拆分操作栏使用材料设计AppCompat V7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能有应用程序兼容性动作条分割状态,针对API 21?
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"
和有元数据:
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
和我的主题基本是Theme.AppCompat
And my theme Base is Theme.AppCompat
但出于某种原因,这已经完全没有作用,这使操作栏中的分裂。
but for some reason this has absolutely no effect making the action bar split.
推荐答案
没有为材料的主题或AppCompat V21没有拆分操作栏支持。您可以通过工具栏一个可以创建自己底部的动作条>添加到您的布局,但你必须要管理上> 600dp配置相结合的控制自己。
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.
这篇关于拆分操作栏使用材料设计AppCompat V7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文