@Override
 public void onPageSelected(int arg0) {
   setCurrentItem(arg0);
   if (mListener != null) {
     mListener.onPageSelected(arg0);
   }
 }
 @Override
 public void onPageSelected(int position) {
   // invoke usersListener
   if (usersListener != null) {
     usersListener.onPageSelected(position);
   }
 }
  @Override
  public void onPageSelected(int arg0) {

    if (mOnPageChangeListener != null) {
      mOnPageChangeListener.onPageSelected(arg0);
    }
  }
Example #4
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 position) {
   if (mTabView != null) {
     mTabView.onPageSelected(position);
   }
   if (mOnPageChangeListener != null) {
     mOnPageChangeListener.onPageSelected(position);
   }
 }
Example #7
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 #8
0
 @Override
 public void onPageSelected(int position) {
   mOnPageChangeListener.onPageSelected(position);
   selectTab(position);
 }