I have set a prescaled Bitmap as ImageView\'s source. Then I\'ve read Matrix of an ImageView
and shift Bitmap of an ImageView via matrix.postTranslate(shi
Maybe this can be helpful:
If you got two fingers on screen, you can get the event of the two fingers and get the mid point:
PointF mid;
MotionEvent event;
float x = event.getX(0) - event.getX(1);
float y = event.getY(0) - event.getY(1);
mid.set(x / 2, y / 2);
Then you can set the scalation having the mid point in the center of the screen:
matrix.postScale(scale, scale, mid.x, mid.y);