Code example for ScaleGestureDetector

Methods: getFocusX, getFocusY, getScaleFactor

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 
            } 
        }; 
 
        public FroyoDetector(Context context) {