Skip to content Skip to sidebar Skip to footer

Textview Color Change On Focus/press

I have a some ui widgets including textview inside RelativeLayout which is clickable. My problem is textview text color does not change when relativelayout gets focus although I ha

Solution 1:

Specify android:duplicateParentState='true' on your TextView.

Solution 2:

Programmatically by textView.setDuplicateParentStateEnabled(true);

for your

TextView textView= new TextView(this);

Post a Comment for "Textview Color Change On Focus/press"