Using Anko, of course: ``` val errors = HashMap&lt...
# android
j
Using Anko, of course:
Copy code
val errors = HashMap<View, Int>()

editText(){
    textChangedListener {
        afterTextChanged {
            errors[this@editText] = when{
                it.isNullOrEmpty() -> R.string.validation_password_empty
                else -> 0
            }
        }
    }
}