NECKAR
WHAT
Sample view in Android with custom pinch gesture detector
NAME
Named after the river that flows through cities like Heilbronn or Heidelberg, in the beautiful south of Germany.
PURPOSE
As I didn't find any proper view written in Java for Android with a custom pinch gesture detector, I did it myself.
USEFUL FOR YOU IF
You want to add to your view in Android a pinch gesture detector besides other gestures, that are already managed by classes like ScaleGestureDetector(), DoubleTapListener() or LongClickListener().
HOW
It detects two fingers and calculate (through Pythagorean Theorem) the distance between the fingers before and after the gesture. So that we can tell if it's a 'zoom in' or a 'zoom out' gesture.
WHO
I'm Luisfer Romero Calero (1986), a Spanish mobile developer. I try to upload to Github projects in HTML5, JavaScript (ExtJS, ember.js, Handlebars, jQuery), CSS, Java, C and Android. If you want to tell me or ask me something about Neckar, I'll be up to read you at luisfer.romero.calero(at)gmail.com
WHEN AND WHERE
Code written in Summer 2012 in Heilbronn, Germany