public static class TabIndicatorView.ViewPagerIndicatorFactory extends TabIndicatorView.TabIndicatorFactory
| Constructor and Description |
|---|
TabIndicatorView.ViewPagerIndicatorFactory(ViewPager vp) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentTabIndicator()
Get the current selected tab.
|
android.graphics.drawable.Drawable |
getIcon(int position)
Get the icon for tab indicator at specific position.
|
int |
getTabIndicatorCount()
Get the number of tab indicators.
|
java.lang.CharSequence |
getText(int position)
Get the text for tab indicator at specific position.
|
boolean |
isIconTabIndicator(int position)
Check if the tab indicator at specific position is icon or text.
|
void |
onPageScrolled(int position,
float positionOffset,
int positionOffsetPixels) |
void |
onPageScrollStateChanged(int state) |
void |
onPageSelected(int position) |
void |
onTabIndicatorSelected(int position)
Notify the selected tab indicator has changed.
|
notifyDataSetChanged, notifyTabChanged, notifyTabInserted, notifyTabMoved, notifyTabRangeChanged, notifyTabRangeInserted, notifyTabRangeRemoved, notifyTabRemoved, notifyTabScrolled, notifyTabScrollStateChanged, notifyTabSelected, setTabIndicatorViewpublic TabIndicatorView.ViewPagerIndicatorFactory(ViewPager vp)
public int getTabIndicatorCount()
TabIndicatorView.TabIndicatorFactorygetTabIndicatorCount in class TabIndicatorView.TabIndicatorFactorypublic boolean isIconTabIndicator(int position)
TabIndicatorView.TabIndicatorFactoryisIconTabIndicator in class TabIndicatorView.TabIndicatorFactoryposition - The position of tab indicator.public android.graphics.drawable.Drawable getIcon(int position)
TabIndicatorView.TabIndicatorFactorygetIcon in class TabIndicatorView.TabIndicatorFactoryposition - The position of tab indicator.public java.lang.CharSequence getText(int position)
TabIndicatorView.TabIndicatorFactorygetText in class TabIndicatorView.TabIndicatorFactoryposition - The position of tab indicator.public void onTabIndicatorSelected(int position)
TabIndicatorView.TabIndicatorFactoryonTabIndicatorSelected in class TabIndicatorView.TabIndicatorFactoryposition - The position of selected tab indicator.public int getCurrentTabIndicator()
TabIndicatorView.TabIndicatorFactorygetCurrentTabIndicator in class TabIndicatorView.TabIndicatorFactorypublic void onPageScrolled(int position,
float positionOffset,
int positionOffsetPixels)
public void onPageSelected(int position)
public void onPageScrollStateChanged(int state)