Java android.support.v4.view CustomViewPager fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.view CustomViewPager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.view CustomViewPager.

The text is from its open source code.

Subclass

android.support.v4.view.CustomViewPager has subclasses.
Click this link to see all its subclasses.

Method

voidaddOnPageChangeListener(OnPageChangeListener listener)
Add a listener that will be invoked whenever the page changes or is incrementally scrolled.
PagerAdaptergetAdapter()
Retrieve the current adapter supplying pages.
voidsetAdapter(PagerAdapter adapter)
Set a PagerAdapter that will supply views for this pager as needed.
voidsetCurrentItem(int item)
Set the currently selected page.
voidsetOffscreenPageLimit(int limit)
Set the number of pages that should be retained to either side of the current page in the view hierarchy in an idle state.
voidsetOnPageChangeListener(OnPageChangeListener listener)
Set a listener that will be invoked whenever the page changes or is incrementally scrolled.