At first I read the Change the color of the overflow button on the action bar , but I cannot get it to work.
I just want to have a simple theme: Action bar background blue and the buttons and text are white. For the list views that I have, I want them to be inverse: white background and blue text. If there is an easy way to achieve this, please let me know. I tried setting the color of the text using the style, but I canβt get the text and buttons for different colors, so I tried to set the overflow for output and for testing. I made the dots red, but I see no effect.
<style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="actionBarStyle">@style/ActionBarStyle</item> </style> <style name="ActionBarStyle" parent="Widget.AppCompat.ActionBar"> <item name="background">@color/background_blue</item> <item name="titleTextStyle">@style/AppTheme.ActionBar.Title</item> <item name="actionOverflowButtonStyle">@style/AppTheme.ActionButton.Overflow</item> </style> <style name="AppTheme.ActionBar.Title" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"> <item name="android:textColor">@color/white</item> </style> <style name="AppTheme.ActionButton.Overflow" parent="@style/Widget.AppCompat.ActionButton.Overflow"> <item name="android:src">@drawable/abc_ic_menu_overflow_button</item> </style>
The overflow button that I use for testing 
While i see

which clearly does not use red buttons.
I was able to use the android: textColorPrimary attribute, but has unwanted side effects.
<style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="android:textColorPrimary">@color/white</item> <item name="actionBarStyle">@style/ActionBarStyle</item> </style> <style name="ActionBarStyle" parent="Widget.AppCompat.ActionBar"> <item name="background">@color/background_blue</item> <item name="titleTextStyle">@style/AppTheme.ActionBar.Title</item> </style> <style name="AppTheme.ActionBar.Title" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"> <item name="android:textColor">@color/white</item> </style>

but then, since I want a white background for my lists, I get no way to see any text, since the text and background are white.
Thank!
android
bitrock Mar 11 '16 at 5:08 2016-03-11 05:08
source share