public interface PageIndicator
extends android.support.v4.view.ViewPager.OnPageChangeListener
Modifier and Type | Method and Description |
---|---|
void |
notifyDataSetChanged()
Notify the indicator that the fragment list has changed.
|
void |
setCurrentItem(int item)
Set the current page of both the ViewPager and indicator.
|
void |
setOnPageChangeListener(android.support.v4.view.ViewPager.OnPageChangeListener listener)
Set a page change listener which will receive forwarded events.
|
void |
setViewPager(android.support.v4.view.ViewPager view)
Bind the indicator to a ViewPager.
|
void |
setViewPager(android.support.v4.view.ViewPager view,
int initialPosition)
Bind the indicator to a ViewPager.
|
void setViewPager(android.support.v4.view.ViewPager view)
view
- void setViewPager(android.support.v4.view.ViewPager view, int initialPosition)
view
- initialPosition
- 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).
item
- void setOnPageChangeListener(android.support.v4.view.ViewPager.OnPageChangeListener listener)
listener
- void notifyDataSetChanged()
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.