Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Selector for TextView and must be kept on res/color folder and applied as android:textColor="@color/yourselector.xml" to the TextView
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/blue" android:state_pressed="true" />
<item android:color="@color/blue" android:state_selected="true" />
<item android:color="@android:color/white" />
</selector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment