Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android PopupMenu how to change menu item text color?

I have created style that change the popup menu background color and now i need to know how to change the menu item text color too. Below is the style i am using

<style name="AppTheme" parent="android:Theme.Holo">
    <item name="android:popupMenuStyle">@style/PopupMenu</item>
</style>

<style name="PopupMenu" parent="@android:style/Widget.PopupMenu">
    <item name="android:popupBackground">@color/popup_menu_bg_color</item>
</style>    
like image 224
Eddi Avatar asked Jan 19 '15 03:01

Eddi


1 Answers

Apply this style code to your application/activity theme style

<item name="android:textColorPrimary">@android:color/white</item>
like image 184
Ready Android Avatar answered Sep 20 '22 00:09

Ready Android