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 - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -