2
Is there any way to remove an image in a Imageview or leave it empty via code?
For example: I "Seto"
img1.setImageResource(R.drawable.icon_circpreto);
It has how to remove it via code?
2
Is there any way to remove an image in a Imageview or leave it empty via code?
For example: I "Seto"
img1.setImageResource(R.drawable.icon_circpreto);
It has how to remove it via code?
2
You can do it like this
img1.setImageResource(android.R.color.transparent);
Another possible solution would be
img1.setImageDrawable(null);
Browser other questions tagged java android android-layout
You are not signed in. Login or sign up in order to post.
Thanks, I got it here!!!
– Christian Gomes da Silva