1

I have vector of EditTexts that I'm dynamically generating and dynamically adding addTextChangedListeners.

The issue is that the returned Editable on "afterTextChanged" doesn't let me know which EditText this listener is associated with.

Is there a way to call the respective EditText from within the TextWatcher?

Thanks,

mgalal
  • 427
  • 12
  • 24

1 Answers1

1

I would suggest creating your own TextWatcher but before I put down my untested pseudo-code here, I discovered there's another guy named Sebastian Roth who had already done that.

Check out his answer: TextWatcher for more than one EditText

Community
  • 1
  • 1
Hang Guan
  • 102
  • 5