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 althou
Specify android:duplicateParentState='true' on your TextView.
android:duplicateParentState='true'
TextView
Programmatically by textView.setDuplicateParentStateEnabled(true);
textView.setDuplicateParentStateEnabled(true);
for your
TextView textView= new TextView(this);