How to clear an ImageView in Android?

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-05-18T16:35:06Z Indexed on 2010/05/18 16:41 UTC
Read the original article Hit count: 252

Filed under:
|

I am resusing ImageViews for my displays, but at some point I don't have values to put it.

So how to clear an ImageView in Android?

I've tried:

mPhotoView.invalidate();
mPhotoView.setImageBitmap(null);

None of them have cleared the view, it still shows previous image.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk