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

    mIndicator.setIndicatorVisibility(visibility);
  }
예제 #3
0
 public PagerIndicator.IndicatorVisibility getIndicatorVisibility() {
   if (mIndicator == null) {
     return mIndicator.getIndicatorVisibility();
   }
   return PagerIndicator.IndicatorVisibility.Invisible;
 }