Gesture Detector with Pan/zoom
Is there a simple to use Gesture Detector with Pan/zoom, which works like
the one from Google Maps?
I'm designing a new Chart widget and would like to implement pan and zoom
into it (X and Y directions independently), and would like to know if
there is an easy way before I start codding it.
This is the current object that is processing the onTouch() events:
class ChartScaleListener extends
ScaleGestureDetector.SimpleOnScaleGestureListener {
@Override
public boolean onScale(ScaleGestureDetector detector) {
scaleY.scale(detector.getScaleFactor());
listner.onScaleListner();
return true;
}
}
I'm going to code it, do you have any idea of how I can isolate the X and
Y zoom gestures?
By the way here is the code I'm working on: DroidPlannerGraph
No comments:
Post a Comment