zooming android image about centre of the image
I have an android application that needs to zoom an image about centre. i implemented the code
开发者_StackOverflow社区 Matrix matrix = new Matrix(); matrix.setScale(scaleWidth, scaleHeight); imView.setScaleType(ScaleType.MATRIX); imView.setImageMatrix(matrix); imView.invalidate(); But i get the zooming about top left of the imView(imageView). i need to make it about centre. anybody please helpUse the four-argument version of setScale
that takes a pivot point.
精彩评论