TextView设置selector
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@drawable/selector_color_text"
android:textSize="10sp" />
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/color_single_white" android:state_selected="true"></item>
<item android:color="@color/color_single_black" android:state_selected="false"></item>
</selector>