Searched refs:viewPager (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | ViewPagerActions.java | 56 ViewPager viewPager = (ViewPager) view; in scrollRight() local 57 int current = viewPager.getCurrentItem(); in scrollRight() 58 viewPager.setCurrentItem(current + 1, false); in scrollRight() 84 ViewPager viewPager = (ViewPager) view; 85 int current = viewPager.getCurrentItem(); 86 viewPager.setCurrentItem(current - 1, false); 112 ViewPager viewPager = (ViewPager) view; 113 int size = viewPager.getAdapter().getCount(); 115 viewPager.setCurrentItem(size - 1, false); 142 ViewPager viewPager = (ViewPager) view; [all …]
|
D | TabLayoutActions.java | 41 public static ViewAction setupWithViewPager(final @Nullable ViewPager viewPager) { in setupWithViewPager() argument 58 tabLayout.setupWithViewPager(viewPager); in setupWithViewPager() 68 public static ViewAction setupWithViewPager(final @Nullable ViewPager viewPager, 86 tabLayout.setupWithViewPager(viewPager, autoRefresh);
|
/frameworks/support/v4/tests/java/android/support/v4/view/ |
D | ViewPagerActions.java | 113 final ViewPager viewPager = (ViewPager) view; in wrap() local 116 viewPager.addOnPageChangeListener(customListener); in wrap() 134 viewPager.removeOnPageChangeListener(customListener); in wrap() 159 ViewPager viewPager = (ViewPager) view; 160 int current = viewPager.getCurrentItem(); 161 viewPager.setCurrentItem(current + 1, smoothScroll); 187 ViewPager viewPager = (ViewPager) view; 188 int current = viewPager.getCurrentItem(); 189 viewPager.setCurrentItem(current - 1, smoothScroll); 215 ViewPager viewPager = (ViewPager) view; [all …]
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerView.java | 190 final ViewPager viewPager = mViewPager; 191 measureChild(viewPager, widthMeasureSpec, heightMeasureSpec); 193 final int measuredWidthAndState = viewPager.getMeasuredWidthAndState(); 194 final int measuredHeightAndState = viewPager.getMeasuredHeightAndState(); 197 final int pagerWidth = viewPager.getMeasuredWidth(); 198 final int pagerHeight = viewPager.getMeasuredHeight();
|
/frameworks/support/design/src/android/support/design/widget/ |
D | TabLayout.java | 746 public void setupWithViewPager(@Nullable ViewPager viewPager) { in setupWithViewPager() argument 747 setupWithViewPager(viewPager, true); in setupWithViewPager() 768 public void setupWithViewPager(@Nullable final ViewPager viewPager, boolean autoRefresh) { in setupWithViewPager() argument 769 setupWithViewPager(viewPager, autoRefresh, false); in setupWithViewPager() 772 private void setupWithViewPager(@Nullable final ViewPager viewPager, boolean autoRefresh, in setupWithViewPager() argument 790 if (viewPager != null) { in setupWithViewPager() 791 mViewPager = viewPager; in setupWithViewPager() 798 viewPager.addOnPageChangeListener(mPageChangeListener); in setupWithViewPager() 801 mCurrentVpSelectedListener = new ViewPagerOnTabSelectedListener(viewPager); in setupWithViewPager() 804 final PagerAdapter adapter = viewPager.getAdapter(); in setupWithViewPager() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | PagerTitleStrip.java | 507 public void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, in onAdapterChanged() argument
|
D | ViewPager.java | 369 void onAdapterChanged(@NonNull ViewPager viewPager, in onAdapterChanged() argument
|