Created
October 10, 2014 09:05
-
-
Save laaptu/60473a0f957a056d8fe0 to your computer and use it in GitHub Desktop.
Selector for TextView and must be kept on res/color folder and applied as android:textColor="@color/yourselector.xml" to the TextView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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