Code example for ScaleGestureDetector

0
            } 
        }; 
 
        public FroyoDetector(Context context) {
            super(context);
            mDetector = new ScaleGestureDetector(context, mScaleListener);
        } 
 
        @Override 
        public boolean isScaling() { 
            return mDetector.isInProgress();
        } 
 
        @Override 
        public boolean onTouchEvent(MotionEvent ev) {
            mDetector.onTouchEvent(ev);
            return super.onTouchEvent(ev);
        } 
 
    } 
}