在drawable文件夹
diff_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@color/focus"/>
<item android:state_selected="true"
android:drawable="@color/focus"/>
<item android:state_focused="true"
android:drawable="@color/focus"/>
</selector>
layout文件夹中mail.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mobile="http://net.blogjava.mobile"
android:orientation="vertical"
android:background="@drawable/
proback"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.android.projector.IconTextView
android:text="@string/on_projector"
android:id="@+id/on_projector"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:background="@drawable/
diff_bg"
android:textStyle="bold"
android:clickable="true"
android:focusable="true"
android:selectable="true"
style="@style/MayStyle"
mobile:iconSrc="@drawable/open"
/>
<com.android.projector.IconTextView
android:text="@string/down_projector"
android:id="@+id/down_projector"
android:layout_below="@id/on_projector"
android:layout_marginTop="20dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
android:clickable="true"
android:focusable="true"
android:selectable="true"
android:background="@drawable/
diff_bg"
style="@style/MayStyle"
mobile:iconSrc="@drawable/close"
/>
</RelativeLayout>