TextView state_pressed/state_focused/state_selected style change
I'm trying to change a TextView style based on its state. My styles.xml contains: <style name="text_normal_ops"> <item name="android:gravity">left</item> <item name="android:textColor">@color/text_usual_color</item> <item name="android:textStyle">bold</item> </style> <style name="text_normal_ops_pressed"> <item name="android:gravity">left</item> <item name="android:textColor">@color/text_pressed</item> <item name="android:textStyle">bold</item> </style> My selector ( text_ops.xml )is defined as: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed=