0
This is my new layout, but the overflow items were blank with white background, and I need white background with black letters. Remembering that I used stylegenerator.
<style name="Theme.Datalayer" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarItemBackground">@drawable/selectable_background_datalayer</item>
<item name="android:popupMenuStyle">@style/PopupMenu.Datalayer</item>
<item name="android:dropDownListViewStyle">@style/DropDownListView.Datalayer</item>
<item name="android:actionBarTabStyle">@style/ActionBarTabStyle.Datalayer</item>
<item name="android:actionDropDownStyle">@style/DropDownNav.Datalayer</item>
<item name="android:actionBarStyle">@style/ActionBar.Solid.Datalayer</item>
<item name="android:actionModeBackground">@drawable/cab_background_top_datalayer</item>
<item name="android:actionModeSplitBackground">@drawable/cab_background_bottom_datalayer</item>
<item name="android:actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Datalayer</item>
<item name="android:actionMenuTextColor">@color/black</item>
<!-- Light.DarkActionBar specific -->
<item name="android:actionBarWidgetTheme">@style/Theme.Datalayer.Widget</item>
</style>
<style name="ActionBar.Solid.Datalayer" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/ab_solid_datalayer</item>
<item name="android:backgroundStacked">@drawable/ab_stacked_solid_datalayer</item>
<item name="android:backgroundSplit">@drawable/ab_bottom_solid_datalayer</item>
<item name="android:progressBarStyle">@style/ProgressBar.Datalayer</item>
</style>
<style name="ActionBar.Transparent.Datalayer" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:background">@drawable/ab_transparent_datalayer</item>
<item name="android:progressBarStyle">@style/ProgressBar.Datalayer</item>
</style>
<style name="PopupMenu.Datalayer" parent="@android:style/Widget.Holo.ListPopupWindow">
<item name="android:popupBackground">@drawable/menu_dropdown_panel_datalayer</item>
<item name="android:textColor">@color/black</item>
</style>
<style name="DropDownListView.Datalayer" parent="@android:style/Widget.Holo.ListView.DropDown">
<item name="android:listSelector">@drawable/selectable_background_datalayer</item>
</style>
<style name="ActionBarTabStyle.Datalayer" parent="@android:style/Widget.Holo.ActionBar.TabView">
<item name="android:background">@drawable/tab_indicator_ab_datalayer</item>
</style>
<style name="DropDownNav.Datalayer" parent="@android:style/Widget.Holo.Spinner">
<item name="android:background">@drawable/spinner_background_ab_datalayer</item>
<item name="android:popupBackground">@drawable/menu_dropdown_panel_datalayer</item>
<item name="android:dropDownSelector">@drawable/selectable_background_datalayer</item>
<item name="android:spinnerDropDownItemStyle">@style/mySpinnerItemStyle</item>
</style>
<style name="mySpinnerItemStyle" parent="@android:style/Widget.Holo.DropDownItem.Spinner">
<item name="android:textColor">@color/black</item>
</style>
<style name="ProgressBar.Datalayer" parent="@android:style/Widget.Holo.ProgressBar.Horizontal">
<item name="android:progressDrawable">@drawable/progress_horizontal_datalayer</item>
</style>
<style name="ActionButton.CloseMode.Datalayer" parent="@android:style/Widget.Holo.ActionButton.CloseMode">
<item name="android:background">@drawable/btn_cab_done_datalayer</item>
</style>
<!-- this style is only referenced in a Light.DarkActionBar based theme -->
<style name="Theme.Datalayer.Widget" parent="@android:style/Theme.Holo">
<item name="android:popupMenuStyle">@style/PopupMenu.Datalayer</item>
<item name="android:dropDownListViewStyle">@style/DropDownListView.Datalayer</item>
</style>
This is because I used the style Generator. I will try your tips, thank you very much
– Bruno
I believe you used this style Generator ( http://jgilfelt.github.io/android-actionbarstylegenerator/), it has a Combobox de
Base Theme
, check the optionLight - Dark Action Bar
. I believe it’s the best solution if it’s not causing problems.– Wakim
Solved the title and verflow, but my background of the popup is white, so I return the question...now change the color of the popup letter
– Bruno
Popup would be the
Dialog
? This style changed the title color of theDialog
?– Wakim
the text color of overflow items
– Bruno
@Juliana I tried to find the style of the item of the Popupmenu items but I did not find it. I strongly recommend that you generate your style again using the
DarkActionBar
, so it becomes homogeneous the theme. I think that changing one or the other punctually will not solve the problem completely.– Wakim