Android EditText.setError() yields invisible error text

后端 未结 5 1227
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 21:17

I have a very simple EditText, as follows:



        
5条回答
  •  感动是毒
    2020-12-08 21:45

    For a more elegant solution try this one:

    editText.setError(Html.fromHtml("Error Message!"));
    

提交回复
热议问题