android.support.v4.view.ViewPager.OnPageChangeListener Java Examples
The following examples show how to use
android.support.v4.view.ViewPager.OnPageChangeListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PagerSlidingTabStrip.java From KitKatEmoji with MIT License | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #2
Source File: UIViewController.java From Auie with GNU General Public License v2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #3
Source File: TabIndicator.java From MaterialQQLite with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.mOnPageChangeListener = listener; }
Example #4
Source File: TabPageIndicator.java From Noyze with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #5
Source File: IconPageIndicator.java From AndroidCacheFoundation with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #6
Source File: MultiplexingOnPageChangeListener.java From Onosendai with Apache License 2.0 | 4 votes |
@Override public void onPageScrollStateChanged (final int state) { for (final OnPageChangeListener l : this.listeners) { l.onPageScrollStateChanged(state); } }
Example #7
Source File: IconPageIndicator.java From zhangshangwuda with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #8
Source File: TabPageIndicator.java From wakao-app with MIT License | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #9
Source File: PagerSlidingTabStrip.java From Android-ParallaxHeaderViewPager with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #10
Source File: IconPageIndicator.java From UltimateAndroid with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #11
Source File: IconPageIndicator.java From android-open-project-demo with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #12
Source File: IconPageIndicator.java From Noyze with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #13
Source File: PagerSlidingTabStrip.java From Android-Chat-Widget with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #14
Source File: PagerSlidingTabStrip.java From FragmentMixViewPager with Apache License 2.0 | 4 votes |
/** * 设置ViewPager * * @param viewPager * ViewPager */ public void setViewPager(ViewPager viewPager) { if (disableViewPager) return; this.viewPager = viewPager; this.viewPager.setOnPageChangeListener(new OnPageChangeListener() { @Override public void onPageSelected(int position) { selectedTab(position); if (onPageChangeListener != null) { onPageChangeListener.onPageSelected(position); } if (listener != null) listener.onChanged(position); } @Override public void onPageScrolled(int nextPagePosition, float positionOffset, int positionOffsetPixels) { ViewGroup tabsLayout = getTabsLayout(); if (nextPagePosition < tabsLayout.getChildCount()) { View view = tabsLayout.getChildAt(nextPagePosition); if (view != null) { currentPosition = nextPagePosition; currentPositionOffset = positionOffset; scrollToChild(nextPagePosition, (int) (positionOffset * view.getWidth())); invalidate(); } } if (onPageChangeListener != null) { onPageChangeListener.onPageScrolled(nextPagePosition, positionOffset, positionOffsetPixels); } } @Override public void onPageScrollStateChanged(int arg0) { if (onPageChangeListener != null) { onPageChangeListener.onPageScrollStateChanged(arg0); } } }); requestLayout(); }
Example #15
Source File: PagerSlidingTabStrip.java From ScrollableLayout with MIT License | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #16
Source File: IconPageIndicator.java From android-discourse with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #17
Source File: PagerSlidingTabStrip.java From MagicHeaderViewPager with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #18
Source File: PullToRefreshViewPager.java From ONE-Unofficial with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener onPageChangeListener) { getRefreshableView().setOnPageChangeListener(onPageChangeListener); }
Example #19
Source File: PagerSlidingTabStrip.java From actor-platform with GNU Affero General Public License v3.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #20
Source File: TabPageIndicator.java From FilePicker with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #21
Source File: TabPageIndicator.java From Noyze with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #22
Source File: IconPageIndicator.java From Noyze with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #23
Source File: PagerSlidingTabStrip.java From MousePaint with MIT License | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #24
Source File: PagerSlidingTabStrip.java From Conquer with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #25
Source File: MenuSlidingTabStrip.java From AndroidPullMenu with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #26
Source File: TabPageIndicator.java From android-project-wo2b with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #27
Source File: TabPageIndicator.java From barterli_android with Apache License 2.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #28
Source File: TabPageIndicator.java From Equate with GNU General Public License v3.0 | 4 votes |
@Override public void setOnPageChangeListener(OnPageChangeListener listener) { mListener = listener; }
Example #29
Source File: PagerSlidingTabStrip.java From droidddle with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.delegatePageListener = listener; }
Example #30
Source File: TabIndicator.java From fingerpoetry-android with Apache License 2.0 | 4 votes |
public void setOnPageChangeListener(OnPageChangeListener listener) { this.mOnPageChangeListener = listener; }