How can I apply color on the various states(focused, pressed, enabled) of the TextView?
I have already referred this: http://developer.android.com/reference/android/
create xml under res/color dir.
example file name : selector_white_gray.xml
you can add more states. you can use color code like "#ffffff" instead of predefined "@color/White". Becarefull, use android:color not android:drawable. this example changes color of text when pressed on it. set the textColor attribute to selector above.