public class

CustomViewPager

extends ViewPager
java.lang.Object
   ↳ ViewPager
     ↳ com.pdftron.pdf.widget.CustomViewPager

Class Overview

A custom view pager that can toggle off swipe event.

Summary

Public Constructors
CustomViewPager(Context context)
CustomViewPager(Context context, AttributeSet attrs)
Public Methods
boolean onInterceptTouchEvent(MotionEvent ev)
boolean onTouchEvent(MotionEvent ev)
void setSwippingEnabled(boolean enabled)
Sets whether this view pager can be swiped
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CustomViewPager (Context context)

public CustomViewPager (Context context, AttributeSet attrs)

Public Methods

public boolean onInterceptTouchEvent (MotionEvent ev)

Parameters
ev motion event
Returns
  • true if this view pager can be swipe, false otherwise

public boolean onTouchEvent (MotionEvent ev)

Parameters
ev motion event
Returns
  • true if this view pager can be swipe, false otherwise

public void setSwippingEnabled (boolean enabled)

Sets whether this view pager can be swiped

Parameters
enabled true then this view pager can be swiped, false otherwise