Skip to content Skip to sidebar Skip to footer

How To Set A Drawable Over An Image View

I have a drawbale i want to place it in a gridView for each each image in this gridView. My drawable is a like a square but filled at the edges. So when i set this drawable as a ba

Solution 1:

A simple way to reverse the background and the actual image.

imageView.setImageResource(R.drawable.frame_all_albums);
...
imageView.setBackgroundResource(actualImageBitmap);

Hope this helps.

Post a Comment for "How To Set A Drawable Over An Image View"