public ViewPagerPage(PageActivity pageActivity) { super(pageActivity); mViewPagerPageManager = new ViewPagerPageManager(this); mViewPagerPageManager.setPageScrollListener( new ViewPagerPageScrollListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { ViewPagerPage.this.onPageScrolled(position, positionOffset, positionOffsetPixels); } @Override public void onPageSelected(int position) { ViewPagerPage.this.onPageSelected(position); } @Override public void onPageScrollStateChanged(int state) { ViewPagerPage.this.onPageScrollStateChanged(state); } }); }
public int getCurrentPageIndex() { return mViewPagerPageManager.getCurrentPageIndex(); }
public void addPage(InnerPage page, CharSequence tabText) { mViewPagerPageManager.addPage(page, tabText); }
public void setupTabLayout(TabLayout tabLayout, boolean smoothScroll) { mViewPagerPageManager.setupTabLayout(tabLayout, smoothScroll); }
public void setPageSmoothScrollEnabled(boolean enabled) { mViewPagerPageManager.setPageSmoothScrollEnabled(enabled); }
public void setInnerPageEventNotifier(InnerPageEventNotifier innerPageEventNotifier) { mViewPagerPageManager.setInnerPageEventNotifier(innerPageEventNotifier); }
@Override public void onDestroy() { mViewPagerPageManager.onDestroy(); }
@Override public void onCovered() { mViewPagerPageManager.onCovered(); }
@Override public void onResume() { mViewPagerPageManager.onResume(); }
@Override public void onShown() { mViewPagerPageManager.onShown(); }
@Override public ViewGroup getContainerView() { return mViewPagerPageManager.getContainerView(); }
public int indexOf(InnerPage innerPage) { return mViewPagerPageManager.indexOf(innerPage); }
public void setFadingEdgeLength(int length) { mViewPagerPageManager.setFadingEdgeLength(length); }
public void setHorizontalFadingEdgeEnabled(boolean enabled) { mViewPagerPageManager.setHorizontalFadingEdgeEnabled(enabled); }
public int getPageCount() { return mViewPagerPageManager.getPageCount(); }
@Override public void onRestoreInstanceState(Bundle savedInstanceState) { mViewPagerPageManager.onRestoreInstanceState(savedInstanceState); }
@Override public void onHidden() { mViewPagerPageManager.onHidden(); }
@Override public void onPause() { mViewPagerPageManager.onPause(); }
@Override public void onUncovered(Object arg) { mViewPagerPageManager.onUncovered(arg); }
@Override public boolean onBackPressed() { return mViewPagerPageManager.onBackPressed(); }
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { mViewPagerPageManager.onActivityResult(requestCode, resultCode, data); }
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { return mViewPagerPageManager.onKeyUp(keyCode, event); }
public void setAlwaysKeepInnerPagesInViewHierarchy(boolean alwaysKeepInnerPagesInViewHierarchy) { mViewPagerPageManager.setAlwaysKeepInnerPagesInViewHierarchy( alwaysKeepInnerPagesInViewHierarchy); }
@Override public boolean onTouchEvent(MotionEvent event) { return mViewPagerPageManager.onTouchEvent(event); }
public void setupTabLayout(int tabLayoutResId, boolean smoothScroll) { mViewPagerPageManager.setupTabLayout(tabLayoutResId, smoothScroll); }
@Override public void onConfigurationChanged(Configuration newConfig) { mViewPagerPageManager.onConfigurationChanged(newConfig); }
public void addPage(InnerPage page, CharSequence tabText, int tabIcon) { mViewPagerPageManager.addPage(page, tabText, tabIcon); }
@Override public void onSaveInstanceState(Bundle outState) { mViewPagerPageManager.onSaveInstanceState(outState); }
public void addPage(InnerPage page, int tabView) { mViewPagerPageManager.addPage(page, tabView); }
public void setCurrentPage(int index, boolean animated) { mViewPagerPageManager.setCurrentPage(index, animated); }