0

Is there a way to set the ScaleType of a ImageView as CENTER using Matrix ScaleType?

I'm in need of Center orientation of an image in the ImageView. Problem occurs when I set the size of the ImageView larger than the screen say 1000dp. By doing so my image sticks to the corners.

If I use layout_margins, I'm not able to pinch and zoom the image properly.

Please help me find a solution.

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
abtdw
  • 165
  • 2
  • 12

0 Answers0