在某种情况下,menu的某一子项(图标和文字)要求不能点击并且灰显。
1. menu子项
menu_item.xml
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/textview_enable"
android:textSize="@dimen/menu_item_text_size"
android:drawablePadding="@dimen/menu_item_drawable_padding"
android:paddingTop="@dimen/menu_item_padding_top"
android:paddingBottom="@dimen/menu_item_padding_bottom"
android:paddingLeft="@dimen/menu_item_padding_left"
android:gravity="left|center_vertical"
android:background="@drawable/menu_item_style" >
</TextView>
其中设置灰显代