I have to display an image which need to zoom in by stretching with two fingers. And zoom out with the same process.
/** Calculate the mid point of the first two fingers */
private void midPoint(PointF point, WrapMotionEvent event) {
float x = event.getX(0) + event.getX(1);
float y = event.getY(0) + event.getY(1);
point.set(x / 2, y / 2);
}
Its not working. Any good link or tutorial to study about it???