android - Why isn't the action bar text color changing? -


i on android lollipop , using following style theme mynavigationdrawertheme

in styles v14

<style name="mynavigationdrawertheme" parent="materialnavigationdrawertheme.light">         <item name="actionmenutextcolor">@color/white</item>  </style> 

in material drawer theme.xml (mostly irrelevant issue)

<style name="materialnavigationdrawertheme.light" parent="theme.appcompat.light.noactionbar" >         <item name="drawertype">@integer/drawertype_accounts</item>         <item name="drawercolor">#fafafa</item>      </style> 

i understand theme theme.appcompat.light.noactionbar has black text action bar why isn't changing when include line <item name="actionmenutextcolor">@color/white</item>

i have been trying fix 2 days tried many things (eg here) nothing works

any idea

you try in styles.xml:

<style name="mynavigationdrawertheme" parent="materialnavigationdrawertheme.light">     <item name="android:actionmenutextcolor">@color/white</item>     <item name="android:actionmenutextappearance">@style/textappearance.actionmenu     </item> </style> <style name="textappearance.actionmenu">      <item name="android:textcolor">@color/white</item> </style> 

ps: yeah ,sometimes won't works android:actionmenutextcolor ,such galaxy s4

just add attr android:actionmenutextappearance


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -