问题
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.
来源:https://stackoverflow.com/questions/21366354/how-to-use-scaletype-of-a-imageview-as-center-and-matrix-at-the-sametime