Skip to content

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="">
<item android:color="@color/blue" android:state_pressed="true" />
<item android:color="@color/blue" android:state_selected="true" />
<item android:color="@android:color/white" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.