Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Action Bar menu item text color

How to change text color of menu item title. I tried to change it as below

<style name="Theme.Kanku.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">     <item name="android:textColor">@color/white</item> </style> 

But it change color only of Action Bar title text, but not menu item text.

like image 254
Procurares Avatar asked Aug 02 '13 10:08

Procurares


People also ask

How do I change the color of my menu items?

This example demonstrates how do I change the text color of the menu item in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main. xml.

How do I change the color of my toolbar text?

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.

How can I change the color of action bar?

Just go to res/values/styles.edit the xml file to change the color of action bar.


1 Answers

Try something like this :

<style name="ThemeName" parent="@style/Theme.Sherlock.Light">     <item name="actionMenuTextColor">@color/white</item>     <item name="android:actionMenuTextColor">@color/white</item> </style> 
like image 58
Deimantas Brandišauskas Avatar answered Sep 29 '22 17:09

Deimantas Brandišauskas