2

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:

Mask Image

FOX 9000
  • 123
  • 1
  • 1
  • 6
Dipak Keshariya
  • 22,193
  • 18
  • 76
  • 128

2 Answers2

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

Dharmendra
  • 33,296
  • 22
  • 86
  • 129
  • If I give ImagePath as a Background Resource then Image Resizing, Zoom In, Zoom Out & Rotation is not Performed on Touch Event of ImageView. – Dipak Keshariya Sep 15 '11 at 13:28
0

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