Code example for ViewPager

Methods: onInterceptTouchEvent

0
    } 
 
    @Override 
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        try { 
            return super.onInterceptTouchEvent(ev);
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
            return false; 
        } 
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java