How to change the text color of ActionBar menu items?

0

In addition to changing the text of the menu item, how do I change the background of the menu that is suspended? In this case, which only appears when clicking on the 3 balls.

    
asked by anonymous 16.04.2015 / 02:45

1 answer

2

I recommend you migrate from ActionBar to Toolbar. In the Toolbar, you can change the popup theme that the menu item will open as an action. Take a look at link

But if you choose to use ActioBar, you can do the following: 1) To change the text color of the Item Action menu:

<style>
    <item name="android:actionMenuTextAppearance">@style/MyTextStyle</item>
</style>

<style name="MyTextStyle" parent="android:style/TextAppearance.Holo.Widget.ActionBar.Title">
    <item name="android:textAppearance">@android:style/TextAppearance.Medium</item>
    <item name="android:textSize">14sp</item>
    <item name="android:textStyle">bold</item>
</style>

And to change the popup / dialog that the Item Menu will open, take a look at the 'Creating a Popup Menu' section of this link: link

I hope I have helped. Good luck!

    
17.04.2015 / 18:50