android - change background of an ImageView (the old image stays there!) -
how can change background of imageview java? have imageview , @ point need change image displays (set in styles). tried this:
placeholder.setimagedrawable(mydrawb);
but looks old image remains there , partially covered new 1 (which in case has different shape).
hope guys can help!
cheers
you don't need touch xml use src instead of background!
an imageview can display 2 drawables! 1 in background , other in foreground. seems changing background image.
instead of setbackgroundresource(resid)
use setimageresource(resid)
change foreground image!
Comments
Post a Comment