0
我有一個問題,我的holo主題,它的工作原理直到Android 4.4,但是當我在Android 5.0+下運行相同的應用程序在操作欄溢出項的下拉菜單顯示顏色黑色黑色,我需要顏色白色THEME Android 5.0+的問題
任何想法?
<style name="Theme.Flux" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarItemBackground">@drawable/selectable_background_flux</item>
<item name="android:popupMenuStyle">@style/PopupMenu.Flux</item>
<item name="android:dropDownListViewStyle">@style/DropDownListView.Flux</item>
<item name="android:actionBarTabStyle">@style/ActionBarTabStyle.Flux</item>
<item name="android:actionDropDownStyle">@style/DropDownNav.Flux</item>
<item name="android:actionBarStyle">@style/ActionBar.Solid.Flux</item>
<item name="android:actionModeBackground">@drawable/cab_background_top_flux</item>
<item name="android:actionModeSplitBackground">@drawable/cab_background_bottom_flux</item>
<item name="android:actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Flux</item>
<!-- Light.DarkActionBar specific -->
<item name="android:actionBarWidgetTheme">@style/Theme.Flux.Widget</item>
<item name="android:actionMenuTextColor">@android:color/white</item>
<item name="actionMenuTextColor">@android:color/white</item>
</style>
<style name="ActionBar.Solid.Flux" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/ab_solid_flux</item>
<item name="android:backgroundStacked">@drawable/ab_stacked_solid_flux</item>
<item name="android:backgroundSplit">@drawable/ab_bottom_solid_flux</item>
<item name="android:progressBarStyle">@style/ProgressBar.Flux</item>
<item name="android:textColor">@android:color/white</item>
<item name="android:actionMenuTextColor">@android:color/white</item>
<item name="actionMenuTextColor">@android:color/white</item>
<item name="android:titleTextStyle">@style/TitleColor</item>
</style>
<style name="TitleColor" parent="android:TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">@android:color/white</item>
</style>
<style name="ActionBar.Transparent.Flux" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:background">@drawable/ab_transparent_flux</item>
<item name="android:progressBarStyle">@style/ProgressBar.Flux</item>
</style>
<style name="PopupMenu.Flux" parent="@android:style/Widget.Holo.ListPopupWindow">
<item name="android:popupBackground">@drawable/menu_dropdown_panel_flux</item>
</style>
<style name="DropDownListView.Flux" parent="@android:style/Widget.Holo.ListView.DropDown">
<item name="android:listSelector">@drawable/selectable_background_flux</item>
</style>
<style name="ActionBarTabStyle.Flux" parent="@android:style/Widget.Holo.ActionBar.TabView">
<item name="android:background">@drawable/tab_indicator_ab_flux</item>
</style>
<style name="DropDownNav.Flux" parent="@android:style/Widget.Holo.Spinner">
<item name="android:background">@drawable/spinner_background_ab_flux</item>
<item name="android:popupBackground">@drawable/menu_dropdown_panel_flux</item>
<item name="android:dropDownSelector">@drawable/selectable_background_flux</item>
</style>
<style name="ProgressBar.Flux" parent="@android:style/Widget.Holo.ProgressBar.Horizontal">
<item name="android:progressDrawable">@drawable/progress_horizontal_flux</item>
</style>
<style name="ActionButton.CloseMode.Flux" parent="@android:style/Widget.Holo.ActionButton.CloseMode">
<item name="android:background">@drawable/btn_cab_done_flux</item>
</style>
<!-- this style is only referenced in a Light.DarkActionBar based theme -->
<style name="Theme.Flux.Widget" parent="@android:style/Theme.Holo">
<item name="android:popupMenuStyle">@style/PopupMenu.Flux</item>
<item name="android:dropDownListViewStyle">@style/DropDownListView.Flux</item>
</style>
<style name="menu_labels_style">
<item name="android:background">@drawable/fab_label_background</item>
<item name="android:textColor">@android:color/white</item>
<item name="android:actionMenuTextColor">@android:color/white</item>
</style>
使用Theme.AppCompat代替Theme.Holo –
與程序兼容性我將鬆散的動作條,我需要它的Cuz這個程序是用動作條,而不是工具欄完成,它進行遷移有很多工作要做 –