Skip to content Skip to sidebar Skip to footer

Android How To Set A Transparent Image Resource Of A View? Or Remove The Image?

((ImageView) v.findViewById(R.id.imageViewHeart1)).setImageResource(R.drawable.heart); I d like to remove my graphicss from my Image Resource so: ((ImageView) v.findViewById(R.id.

Solution 1:

If you remove image then used

((ImageView) v.findViewById(R.id.imageViewHeart1)).setImageResource(0);

Solution 2:

Solution 3:

Try add transparent png with 1px width and 1px height.

Post a Comment for "Android How To Set A Transparent Image Resource Of A View? Or Remove The Image?"