I have a very simple EditText, as follows:
For a more elegant solution try this one:
editText.setError(Html.fromHtml("Error Message!"));