How to use scaletype of a ImageView as center and matrix at the sametime?

柔情痞子 提交于 2019-12-13 20:15:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!