Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing action overflow text color in the ActionBar

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?

like image 447
Marqs Avatar asked Oct 15 '13 10:10

Marqs


People also ask

How do you change the color of your title on Android?

In method 1 Just go to the activity_main. xml file and add a TextView in the toolbar widget with the text color attribute. The complete code for the activity_main.


1 Answers

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>

like image 134
ponnex Avatar answered Sep 23 '22 06:09

ponnex