I was reading about TextWatcher in Android programming. I could not understand the difference between afterTextChanged()
and onTextChanged()
.
Although I referred to
Differences between TextWatcher 's onTextChanged, beforeTextChanged and afterTextChanged, I am still not able to think of a situation when I would need to use onTextChanged()
and not afterTextChanged()
.
I found an explanation to this on Android Dev Portal
http://developer.android.com/reference/android/text/TextWatcher.html
So, the differences between the two are:
afterTextChanged
whileonTextChanged
does not allow me to do that