@Override
  public void onPageSelected(int arg0) {

    if (mOnPageChangeListener != null) {
      mOnPageChangeListener.onPageSelected(arg0);
    }
  }
 @Override
 public void onPageSelected(int position) {
   // invoke usersListener
   if (usersListener != null) {
     usersListener.onPageSelected(position);
   }
 }
Example #3
0
 @Override
 public void onPageSelected(int position) {
   setCurrentTab(position);
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageSelected(position);
   }
 }
 @Override
 public void onPageSelected(int index) {
   mLastTab = index;
   updateIndicators(index);
   if (mActivity instanceof OnPageChangeListener)
     ((OnPageChangeListener) mActivity).onPageSelected(index);
 }
 @Override
 public void onPageSelected(int arg0) {
   setCurrentItem(arg0);
   if (mListener != null) {
     mListener.onPageSelected(arg0);
   }
 }
Example #6
0
 @Override
 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
   mLineMarginX = (int) (mTabWidth * (position + positionOffset));
   postInvalidate();
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
   }
 }
 @Override
 public void onPageSelected(int position) {
   if (mTabView != null) {
     mTabView.onPageSelected(position);
   }
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageSelected(position);
   }
 }
  @Override
  public void onPageScrollStateChanged(int state) {
    mNeedsRedraw = (state != ViewPager.SCROLL_STATE_IDLE);

    // invoke usersListener
    if (usersListener != null) {
      usersListener.onPageScrollStateChanged(state);
    }
  }
 @Override
 public void onPageScrollStateChanged(int state) {
   if (mTabView != null) {
     mTabView.onPageScrollStateChanged(state);
   }
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageScrollStateChanged(state);
   }
 }
 @Override
 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
   if (mTabView != null) {
     mTabView.onPageScrolled(position, positionOffset, positionOffsetPixels);
   }
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
   }
   // postInvalidate();
 }
  @Override
  public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
    if (positionOffsetPixels != 0) {
      mTabstrips.get(position).setBitmapAlpha(1 - positionOffset);
      mTabstrips.get(position + 1).setBitmapAlpha(positionOffset);
    }

    if (mOnPageChangeListener != null) {
      mOnPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
    }
  }
  @Override
  public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
    // Force the container to redraw on scrolling.
    // Without this the outer pages render initially and then stay static
    if (mNeedsRedraw) {
      invalidate();
    }

    // invoke usersListener
    if (usersListener != null) {
      usersListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
    }
  }
Example #13
0
 public void moveToItem(int item) {
   if (mViewPager == null) {
     throw new IllegalStateException("ViewPager has not been bound.");
   }
   if (mSelectedTabIndex == item) {
     return;
   }
   mSelectedTabIndex = item;
   mViewPager.setCurrentItem(item);
   if (mListener != null) {
     mListener.onPageSelected(item);
   }
   updateTab(item);
 }
Example #14
0
 @Override
 public void onPageScrolled(int i, float v, int i1) {
   if (mListener != null) {
     mListener.onPageScrolled(i, v, i1);
   }
 }
 @Override
 public void onPageScrollStateChanged(int arg0) {
   if (mActivity instanceof OnPageChangeListener)
     ((OnPageChangeListener) mActivity).onPageScrollStateChanged(arg0);
 }
 @Override
 public void onPageScrollStateChanged(int arg0) {
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageScrollStateChanged(arg0);
   }
 }
Example #17
0
 @Override
 public void onPageScrollStateChanged(int i) {
   if (mListener != null) {
     mListener.onPageScrollStateChanged(i);
   }
 }
Example #18
0
 @Override
 public void onPageScrollStateChanged(int state) {
   mOnPageChangeListener.onPageScrollStateChanged(state);
 }
Example #19
0
 @Override
 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
   mOnPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
 }
Example #20
0
 @Override
 public void onPageSelected(int position) {
   mOnPageChangeListener.onPageSelected(position);
   selectTab(position);
 }
 @Override
 public void onPageScrolled(int arg0, float arg1, int arg2) {
   if (mActivity instanceof OnPageChangeListener)
     ((OnPageChangeListener) mActivity).onPageScrolled(arg0, arg1, arg2);
 }
 @Override
 public void onPageScrolled(int arg0, float arg1, int arg2) {
   if (mListener != null) {
     mListener.onPageScrolled(arg0, arg1, arg2);
   }
 }