doBeforeTextChanged

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

Add an action which will be invoked before the text changed.

Return

the TextWatcher added to the TextView