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; 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE