public void setCustomIndicator(PagerIndicator indicator) { if (mIndicator != null) { mIndicator.destroySelf(); } mIndicator = indicator; mIndicator.setIndicatorVisibility(mIndicatorVisibility); mIndicator.setViewPager(mViewPager); mIndicator.redraw(); }
/** * Set the visibility of the indicators. * * @param visibility */ public void setIndicatorVisibility(PagerIndicator.IndicatorVisibility visibility) { if (mIndicator == null) { return; } mIndicator.setIndicatorVisibility(visibility); }
public PagerIndicator.IndicatorVisibility getIndicatorVisibility() { if (mIndicator == null) { return mIndicator.getIndicatorVisibility(); } return PagerIndicator.IndicatorVisibility.Invisible; }