onFocused

inline fun EditText.onFocused(crossinline block: () -> Unit)

Sets OnFocusChangeListener and calls specified function block if this view become focused

See also