I set the two pointers inside ACTION_POINTER_DOWN
point1.set(event.getX(0),event.getY(0));
point2.set(event.getX(1),event.getY(1));
How can I get the distance between this two points? Is there any way to get it?
I want the distance to make some Scrolling effect. With the distance, I can use it like a scalefactor and resize my Layouts.
I hope someone can tell me how to do that!