问题
I have one mask image, this image is transparent and I will change the image size dynamically. The problem is that the image is displayed in a square/rectangle form. The ImageView
is also displaying the transparent area image, so how to remove the transparent area?
The image is:
回答1:
If you want to increase size as Imageview size change then you have to set Image as its background
.
Try using setBackgroundResource()
you can able to increase your ImageView image
回答2:
for changing the size of image dynamically you can use scale animation,in layout of android.
来源:https://stackoverflow.com/questions/7430441/removing-transparent-area-in-imageview