Пример #1
0
  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);
          }
        });
  }
Пример #2
0
 public int getCurrentPageIndex() {
   return mViewPagerPageManager.getCurrentPageIndex();
 }
Пример #3
0
 public void addPage(InnerPage page, CharSequence tabText) {
   mViewPagerPageManager.addPage(page, tabText);
 }
Пример #4
0
 public void setupTabLayout(TabLayout tabLayout, boolean smoothScroll) {
   mViewPagerPageManager.setupTabLayout(tabLayout, smoothScroll);
 }
Пример #5
0
 public void setPageSmoothScrollEnabled(boolean enabled) {
   mViewPagerPageManager.setPageSmoothScrollEnabled(enabled);
 }
Пример #6
0
 public void setInnerPageEventNotifier(InnerPageEventNotifier innerPageEventNotifier) {
   mViewPagerPageManager.setInnerPageEventNotifier(innerPageEventNotifier);
 }
Пример #7
0
 @Override
 public void onDestroy() {
   mViewPagerPageManager.onDestroy();
 }
Пример #8
0
 @Override
 public void onCovered() {
   mViewPagerPageManager.onCovered();
 }
Пример #9
0
 @Override
 public void onResume() {
   mViewPagerPageManager.onResume();
 }
Пример #10
0
 @Override
 public void onShown() {
   mViewPagerPageManager.onShown();
 }
Пример #11
0
 @Override
 public ViewGroup getContainerView() {
   return mViewPagerPageManager.getContainerView();
 }
Пример #12
0
 public int indexOf(InnerPage innerPage) {
   return mViewPagerPageManager.indexOf(innerPage);
 }
Пример #13
0
 public void setFadingEdgeLength(int length) {
   mViewPagerPageManager.setFadingEdgeLength(length);
 }
Пример #14
0
 public void setHorizontalFadingEdgeEnabled(boolean enabled) {
   mViewPagerPageManager.setHorizontalFadingEdgeEnabled(enabled);
 }
Пример #15
0
 public int getPageCount() {
   return mViewPagerPageManager.getPageCount();
 }
Пример #16
0
 @Override
 public void onRestoreInstanceState(Bundle savedInstanceState) {
   mViewPagerPageManager.onRestoreInstanceState(savedInstanceState);
 }
Пример #17
0
 @Override
 public void onHidden() {
   mViewPagerPageManager.onHidden();
 }
Пример #18
0
 @Override
 public void onPause() {
   mViewPagerPageManager.onPause();
 }
Пример #19
0
 @Override
 public void onUncovered(Object arg) {
   mViewPagerPageManager.onUncovered(arg);
 }
Пример #20
0
 @Override
 public boolean onBackPressed() {
   return mViewPagerPageManager.onBackPressed();
 }
Пример #21
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   mViewPagerPageManager.onActivityResult(requestCode, resultCode, data);
 }
Пример #22
0
 @Override
 public boolean onKeyUp(int keyCode, KeyEvent event) {
   return mViewPagerPageManager.onKeyUp(keyCode, event);
 }
Пример #23
0
 public void setAlwaysKeepInnerPagesInViewHierarchy(boolean alwaysKeepInnerPagesInViewHierarchy) {
   mViewPagerPageManager.setAlwaysKeepInnerPagesInViewHierarchy(
       alwaysKeepInnerPagesInViewHierarchy);
 }
Пример #24
0
 @Override
 public boolean onTouchEvent(MotionEvent event) {
   return mViewPagerPageManager.onTouchEvent(event);
 }
Пример #25
0
 public void setupTabLayout(int tabLayoutResId, boolean smoothScroll) {
   mViewPagerPageManager.setupTabLayout(tabLayoutResId, smoothScroll);
 }
Пример #26
0
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   mViewPagerPageManager.onConfigurationChanged(newConfig);
 }
Пример #27
0
 public void addPage(InnerPage page, CharSequence tabText, int tabIcon) {
   mViewPagerPageManager.addPage(page, tabText, tabIcon);
 }
Пример #28
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   mViewPagerPageManager.onSaveInstanceState(outState);
 }
Пример #29
0
 public void addPage(InnerPage page, int tabView) {
   mViewPagerPageManager.addPage(page, tabView);
 }
Пример #30
0
 public void setCurrentPage(int index, boolean animated) {
   mViewPagerPageManager.setCurrentPage(index, animated);
 }