edittext show error android code example
Example: android studio set error
val editText = findViewById<TextInputEditText>(R.id.TextInputEditText)
editText.setError("Error msg")
val editText = findViewById<TextInputEditText>(R.id.TextInputEditText)
editText.setError("Error msg")