0

In my app, I have a dynamic number of edittexts and after the user changes some settings I need the focus outline graphic to appear on some but not all of the edittexts. This is needed to highlight the importance of those fields.

Is there an easy way to do this? I have seen some things about modifying some graphic code here but I didn't think that was applicable to what I am trying to do.

Community
  • 1
  • 1
TxAg
  • 1,485
  • 2
  • 13
  • 14

1 Answers1

0

The focus outline shows which EditText box has focus. That means it can only be one at a time. What you can do is put the EditText in a View that has a stateful drawable for the background.

CaseyB
  • 24,780
  • 14
  • 77
  • 112