Back to project page DragHelperView.
The source code is released under:
Apache License
If you think the Android project DragHelperView 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 so.library.draghelper.helper; //w w w. ja v a 2s. c o m import android.view.GestureDetector; import android.view.MotionEvent; /** * Created by minkyu on 2015. 1. 20.. */ public class SimpleDoubleTapListener extends GestureDetector.SimpleOnGestureListener{ Runnable callback; public SimpleDoubleTapListener(Runnable callback){ this.callback = callback; } @Override public boolean onDoubleTap(MotionEvent event){ callback.run(); return true; } }