for people who are looking for a Kotlin answer
val errorText = spinnerclient.selectedView as TextView
errorText.error = "client required"
errorText.requestFocus()
return@setOnClickListener
The focus was returned but the text wasn't displayed. I will update once its displayed