Android Listen to Edittext Text Change With Ktx doOnTextChanged

April 21, 2019
Simplified addTextChangedListener TextWatcher implementation

Add an action which will be invoked when the text is changing.

editText.doOnTextChanged { text, start, count, after ->

}

NOTE: Source code

NOTE: doBeforeTextChanged and doAfterTextChanged is available as well.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.