Text color of option menu items now changes when item is disabled and menu has been opened through action bar.

This commit is contained in:
Christine Emrich 2015-03-29 19:13:58 +02:00
parent 20bfe0983d
commit 18c90c2f71
3 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#88c0c0c0" />
<item android:color="#ffc0c0c0"/>
</selector>

View file

@ -17,6 +17,7 @@
<color name="slide_up_panel_header_background_color">#ff343434</color>
<color name="slide_up_panel_slider_background_color">#ffdcdcdc</color>
<color name="options_menu_item_text">@drawable/options_menu_item_color</color>
<color name="material_grey_900">#212121</color>

View file

@ -30,7 +30,7 @@
</style>
<style name="ToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:textColor">#ffc0c0c0</item>
<item name="android:textColor">@color/options_menu_item_text</item>
</style>