7

I have been struggling to change the text color of the Action Overflow item in the action bar. I use v7 AppCompat and Light theme with Dark actionbar.

enter image description here

actionMenuTextColor doesn't seems to do anything. I need to change it to a black text? Any ideas?

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Marqs
  • 17,800
  • 4
  • 30
  • 40

5 Answers5

1

You might already have your answer but maybe somebody has the same question so heres my solution to that:

just use "Theme.AppCompat.Light.DarkActionBar" or something with dark action bar

<!-- Base application theme. -->
<style name="AppTheme" parent="AppTheme.Base"/>

<style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

ponnex
  • 838
  • 5
  • 18
0

There is a similiar post here:

Modify style of Android items in the ActionBar

Seems to be related to setting the particular style of the actionbar instead of just the actionmenutextcolor attribute.

Community
  • 1
  • 1
JoxTraex
  • 13,423
  • 6
  • 32
  • 45
0

Setting the Theme's itemTextAppearance as described in this answer worked for me.

-1

Fairly late for an answer but maybe it helps somebody else.

Use android:actionBarWidgetTheme (actionBarWidgetTheme if you use any of the ActionBarCompat themes as your base theme) to set the text color to black <item name="android:textColor">#000</item>

See a blog post here that explains how to set the android:radioButtonStyle in the same fashion.

Dan
  • 330
  • 1
  • 4
-1
<item name="android:itemTextAppearance">@style/PopupMenu.recipe</item>
<style name="PopupMenu.recipe" 
    parent="@style/Widget.AppCompat.Light.Base.ActionButton.Overflow">  
    <item name="android:textColor">@color/actionbar_text</item> 
</style>
gunr2171
  • 16,104
  • 25
  • 61
  • 88
piyush
  • 7
  • 1