TextView color change on focus/press

前端 未结 2 1262
遥遥无期
遥遥无期 2021-01-04 17:21

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

相关标签:
2条回答
  • 2021-01-04 17:46

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

    0 讨论(0)
  • Programmatically by textView.setDuplicateParentStateEnabled(true);

    for your

    TextView textView= new TextView(this);

    0 讨论(0)
提交回复
热议问题