Code example for ScaleGestureDetector

Methods: getFocusXgetFocusYgetScaleFactor

0
        // VerifyError's on API 4. 
        private final OnScaleGestureListener mScaleListener = new OnScaleGestureListener() {
 
            @Override 
            public boolean onScale(ScaleGestureDetector detector) { 
                mListener.onScale(detector.getScaleFactor(), detector.getFocusX(), detector.getFocusY()); 
                return true; 
            } 
 
            @Override 
            public boolean onScaleBegin(ScaleGestureDetector detector) { 
                return true; 
            } 
 
            @Override 
            public void onScaleEnd(ScaleGestureDetector detector) { 
                // NO-OP 
            } 
        }; 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE