I know a little bit about TextWatcher
but that fires on every character you enter. I want a listener that fires whenever the user finishes editing. Is it possible? Also in TextWatcher
I get an instance of Editable
but I need an instance of EditText
. How do I get that?
EDIT: the second question is more important. Please answer that.
It was bothering me that implementing a listener for all of my EditText fields required me to have ugly, verbose code so I wrote the below class. May be useful to anyone stumbling upon this.
Now implementing a listener is a little bit cleaner.
As for how often it fires, one could maybe implement a check to run their desired code in
//Do stuff
after a given a