开发者

Removing transparent area in ImageView

I have one mask image, this image is transparent and I will change the image size dynamically. Th开发者_如何学运维e 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:

Removing transparent area in ImageView


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


for changing the size of image dynamically you can use scale animation,in layout of android.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜