如何在TextView的各种状态(focused、pressed、enabled)上应用颜色?
我已经参考了这个链接:http://developer.android.com/reference/android/content/res/ColorStateList.html,但是我不知道如何将颜色状态列表应用到TextView上。还有其他方法吗?
更新:
我想改变背景颜色。
我已经参考了这个链接:http://developer.android.com/reference/android/content/res/ColorStateList.html,但是我不知道如何将颜色状态列表应用到TextView上。还有其他方法吗?
更新:
我想改变背景颜色。
@drawable/selector_white_grey
而不是@color/selector_white_grey
。 - lschlessinger