android textview drawableright programatically -


how make drawableright image on textview appear , disappear programmatically in android. have textview , button. when user press button, suppose use data on textview something. however, if textview emtpy, want show error icon on drawableright. please advise. thanks.

i think looking http://developer.android.com/reference/android/widget/textview.html#seterror(java.lang.charsequence)

basically show default error icon on right inside textview if set it.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -