<?xml version="1.0" encoding="utf-8"?>
< selector xmlns:Android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="#ff0000" />
<item android:state_focused="true" android:color="#ff0000" />
<item android:state_pressed="true" android:color="#ff0000" />
<item android:color="#89683B" />
< /selector>
2.设置textview的selector
<TextView android:layout_width="wrap_content" android:id="@+id/Item_Text"
android:textColor="@color/textview" android:layout_gravity="center"
android:singleLine="true" android:layout_height="wrap_content"
android:gravity="center">
</TextView>