android - menu items in action bar showing up weird -
i created custom theme action bar makes white, , having tad bit of trouble, , have not been able find solution. first of want 'options button' red, text below. want when clicked whole row highlighted, not shown in picture:

sso here code theme i'm using:
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="mycustomtheme" parent="@android:style/theme.holo.light"> <item name="android:actionbarstyle">@style/myactionbartheme</item> <item name="android:background">@color/white</item> <item name="android:textcolorlink">@color/white</item> </style> <style name="myactionbartheme" parent="@android:style/widget.holo.light.actionbar"> <item name="android:background">@color/white</item> <item name="android:textcolor">@color/red</item> </style> </resources> i hoping red text aligned right, , have tried multiple alignment methods no luck.thanks.
you need styles android:actionmenutextcolor change "options" text color , android:textappearancelargepopupmenu change popupmenu text color.
<style name="your.theme" parent="@android:style/theme.holo.light"> <item name="android:actionmenutextcolor">@android:color/holo_red_dark</item> <item name="android:textappearancelargepopupmenu">@style/textappearance.red.popupmenu.large</item> <item name="android:popupmenustyle">@style/popupmenu.example</item> </style> <style name="textappearance.red.popupmenu.large" parent="@android:style/textappearance.devicedefault.widget.popupmenu.large"> <item name="android:textcolor">@android:color/holo_red_dark</item> </style> <style name="popupmenu.example" parent="@android:style/widget.listpopupwindow"> <item name="android:popupbackground">@drawable/your_background</item> <!-- or use --> <item name="android:popupbackground">@android:color/white</item> </style> 
Comments
Post a Comment