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/
It's easy. Just intercept desired event and write smth like:
TextView textView=(TextView)findViewById(R.id.myText);
String s=getString(R.string.myText);
SpannableString ss=new SpannableString(s);
ss.setSpan(new ForegroundColorSpan(Color.RED), 0, s.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
textView.setText(ss);