有没有办法在Lollipop设备上强制应用显示Holo动作栏?
我的主题目前继承自Holo.Light,但我看到了新的动作栏。Youtube应用程序可以做到这一点,但我认为它使用的是旧版本的AppCompat库。
有任何建议吗?
有没有办法在Lollipop设备上强制应用显示Holo动作栏?
我的主题目前继承自Holo.Light,但我看到了新的动作栏。Youtube应用程序可以做到这一点,但我认为它使用的是旧版本的AppCompat库。
有任何建议吗?
<application
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light.DarkActionBar"
android:uiOptions="splitActionBarWhenNarrow">
<application
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Apptheme">
Theme.Holo
,并修改了操作栏,感谢Jeff Gilfelt的Action Bar Style Generator。<style name="Theme.Apptheme" parent="@android:style/Theme.Holo">
<item name="android:actionBarItemBackground">@drawable/selectable_background_apptheme</item>
<item name="android:popupMenuStyle">@style/PopupMenu.Apptheme</item>
<item name="android:dropDownListViewStyle">@style/DropDownListView.Apptheme</item>
<item name="android:actionBarTabStyle">@style/ActionBarTabStyle.Apptheme</item>
<item name="android:actionDropDownStyle">@style/DropDownNav.Apptheme</item>
<item name="android:actionBarStyle">@style/ActionBar.Solid.Apptheme</item>
<item name="android:actionModeBackground">@drawable/cab_background_top_apptheme</item>
<item name="android:actionModeSplitBackground">@drawable/cab_background_bottom_apptheme</item>
<item name="android:actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Apptheme</item>
</style>
Theme.Holo
的应用程序提供Material-ish外观(这是我对“新操作栏”的理解),请将其上传到某个地方。