5

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>    
0

2 Answers 2

7

Apply this style code to your application/activity theme style

<item name="android:textColorPrimary">@android:color/white</item>
2
0

Question android popup menu text color might have answer which you need.

If you use TextAppearance.AppCompat.Base.Widget.PopupMenu, you might use TextAppearance.AppCompat.Light.Widget.PopupMenu instead.

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.