com.viewpagerindicator.PageIndicator |
Known Indirect Subclasses
CirclePageIndicator |
Draws circles (one for each view). |
TabPageIndicator |
This widget implements the dynamic action bar tab behavior that can change
across different configurations or circumstances. |
TitlePageIndicator |
A TitlePageIndicator is a PageIndicator which displays the title of left view
(if exist), the title of the current select view (centered) and the title of
the right view (if exist). |
|
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.