public interface

PageIndicator

com.viewpagerindicator.PageIndicator
Known Indirect Subclasses

Class Overview

A PageIndicator is responsible to show an visual indicator on the total views number and the current visible view.

Summary

Public Methods
abstract void notifyDataSetChanged()
Notify the indicator that the fragment list has changed.
abstract void setCurrentItem(int item)

Set the current page of both the ViewPager and indicator.

abstract void setOnPageChangeListener(ViewPager.OnPageChangeListener listener)
Set a page change listener which will receive forwarded events.
abstract void setViewPager(ViewPager view, int initialPosition)
Bind the indicator to a ViewPager.
abstract void setViewPager(ViewPager view)
Bind the indicator to a ViewPager.

Public Methods

public abstract void notifyDataSetChanged ()

Notify the indicator that the fragment list has changed.

public abstract void setCurrentItem (int item)

Set the current page of both the ViewPager and indicator.

This must be used if you need to set the page before the views are drawn on screen (e.g., default start page).

public abstract void setOnPageChangeListener (ViewPager.OnPageChangeListener listener)

Set a page change listener which will receive forwarded events.

public abstract void setViewPager (ViewPager view, int initialPosition)

Bind the indicator to a ViewPager.

public abstract void setViewPager (ViewPager view)

Bind the indicator to a ViewPager.