I want to remove the image in the image view when a button is pressed while displaying the image view.
mPhotoView.invalidate();
mPhotoView.setImageBitmap(null);
I tried it like this, but it didn't work. How shall I do it?
android
mPhotoView.setImageResource(0);
mPhotoView.setImageResource(android.R.color.transparent);
Try this.
© 2024 OneMinuteCode. All rights reserved.