Code example for GestureDetectorCompat

0
        init(context);
    } 
 
    private void init(Context context) {
        setChildrenDrawingOrderEnabled(true); 
        mGestureDetector = new GestureDetectorCompat(context, new MyGestureListener());
        mScroller = new Scroller(context);
        setClickable(true);
        setFocusableInTouchMode(true);
    } 
 
     
    private static final String TAG = "CircleLayout";
    private static final double NEIBOUR_ANGLE_RADIAN = 0.66667 * Math.PI;
     
    @Override 
    protected void onLayout(boolean changed, int left, int top, int right,
            int bottom) {
        Log.d(TAG, "onLayout............");
        int count = getChildCount();