Is there any way to remove an image in an ImageView or leave it empty via code?
For example: I "hedge"
img1.setImageResource(R.drawable.icon_circpreto);
How do you remove it via code?
Is there any way to remove an image in an ImageView or leave it empty via code?
For example: I "hedge"
img1.setImageResource(R.drawable.icon_circpreto);
How do you remove it via code?
You can do so
img1.setImageResource(android.R.color.transparent);
Another possible solution would be
img1.setImageDrawable(null);