Back to project page droid-fu.
The source code is released under:
Apache License
If you think the Android project droid-fu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.droidfu.listeners; /*from w w w.java 2 s . c om*/ import com.github.droidfu.activities.BetterMapActivity; import android.view.MotionEvent; import android.view.GestureDetector.SimpleOnGestureListener; public class MapGestureListener extends SimpleOnGestureListener { protected BetterMapActivity mapActivity; public MapGestureListener(BetterMapActivity mapActivity) { this.mapActivity = mapActivity; } @Override public boolean onDoubleTap(MotionEvent event) { mapActivity.getMapView().getController().zoomInFixing((int) event.getX(), (int) event.getY()); return true; } }