Search in sources :

Example 1 with RotationGestureDetector

use of com.yalantis.ucrop.weiui.library.util.RotationGestureDetector in project weiui by kuaifan.

the class GestureCropImageView method setupGestureListeners.

private void setupGestureListeners() {
    mGestureDetector = new GestureDetector(getContext(), new GestureListener(), null, true);
    mScaleDetector = new ScaleGestureDetector(getContext(), new ScaleListener());
    mRotateDetector = new RotationGestureDetector(new RotateListener());
}
Also used : RotationGestureDetector(com.yalantis.ucrop.weiui.library.util.RotationGestureDetector) GestureDetector(android.view.GestureDetector) RotationGestureDetector(com.yalantis.ucrop.weiui.library.util.RotationGestureDetector) ScaleGestureDetector(android.view.ScaleGestureDetector) ScaleGestureDetector(android.view.ScaleGestureDetector)

Aggregations

GestureDetector (android.view.GestureDetector)1 ScaleGestureDetector (android.view.ScaleGestureDetector)1 RotationGestureDetector (com.yalantis.ucrop.weiui.library.util.RotationGestureDetector)1