doOnTextChanged

inline fun TextView.doOnTextChanged(crossinline action: (text: CharSequence?, start: Int, before: Int, count: Int) -> Unit): TextWatcher(source)

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

Return

the TextWatcher added to the TextView