Code example for ViewPager

Methods: onTouchEvent

0
    } 
 
    @Override 
    public boolean onTouchEvent(MotionEvent event) {
        if (isGesturesEnabled()) { 
            return super.onTouchEvent(event);
        } 
 
        return false; 
    } 
 
    @Override 
    public boolean onInterceptTouchEvent(MotionEvent event) {
        if (isGesturesEnabled()) { 
            return super.onInterceptTouchEvent(event);
        } 
 
        return false; 
    } 
 
    boolean isGesturesEnabled()