Searched defs:mViewPager (Results 1 - 14 of 14) sorted by relevance

/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/swipe/
H A DBaseActivity.java31 protected ViewPager2 mViewPager; field in class:BaseActivity
39 mViewPager = findViewById(R.id.view_pager);
/frameworks/support/frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
H A DFragmentNestingPagerSupport.java35 ViewPager mViewPager; field in class:FragmentNestingPagerSupport
42 mViewPager = new ViewPager(this);
43 mViewPager.setId(R.id.pager);
44 setContentView(mViewPager);
50 mTabsAdapter = new TabsAdapter(this, mViewPager);
86 private final ViewPager mViewPager; field in class:FragmentNestingPagerSupport.TabsAdapter
103 mViewPager = pager;
104 mViewPager.setAdapter(this);
105 mViewPager.addOnPageChangeListener(this);
146 mViewPager
[all...]
H A DFragmentNestingStatePagerSupport.java35 ViewPager mViewPager; field in class:FragmentNestingStatePagerSupport
42 mViewPager = new ViewPager(this);
43 mViewPager.setId(R.id.pager);
44 setContentView(mViewPager);
50 mTabsAdapter = new TabsAdapter(this, mViewPager);
86 private final ViewPager mViewPager; field in class:FragmentNestingStatePagerSupport.TabsAdapter
103 mViewPager = pager;
104 mViewPager.setAdapter(this);
105 mViewPager.addOnPageChangeListener(this);
146 mViewPager
[all...]
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DTabLayoutPreselectedUsage.java45 private ViewPager mViewPager; field in class:TabLayoutPreselectedUsage
59 mViewPager = findViewById(R.id.tabs_viewpager);
67 mViewPager.setAdapter(mPagerAdapter);
68 mViewPager.setCurrentItem(2, false);
70 mTabLayout.setupWithViewPager(mViewPager);
H A DTabLayoutUsage.java46 private ViewPager mViewPager; field in class:TabLayoutUsage
62 mViewPager = findViewById(R.id.tabs_viewpager);
65 mViewPager.setAdapter(mPagerAdapter);
67 mTabLayout.setupWithViewPager(mViewPager);
79 mViewPager.setCurrentItem(0);
/frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
H A DFragmentNestingPagerSupport.java35 ViewPager mViewPager; field in class:FragmentNestingPagerSupport
42 mViewPager = new ViewPager(this);
43 mViewPager.setId(R.id.pager);
44 setContentView(mViewPager);
50 mTabsAdapter = new TabsAdapter(this, mViewPager);
86 private final ViewPager mViewPager; field in class:FragmentNestingPagerSupport.TabsAdapter
103 mViewPager = pager;
104 mViewPager.setAdapter(this);
105 mViewPager.addOnPageChangeListener(this);
146 mViewPager
[all...]
H A DFragmentNestingStatePagerSupport.java35 ViewPager mViewPager; field in class:FragmentNestingStatePagerSupport
42 mViewPager = new ViewPager(this);
43 mViewPager.setId(R.id.pager);
44 setContentView(mViewPager);
50 mTabsAdapter = new TabsAdapter(this, mViewPager);
86 private final ViewPager mViewPager; field in class:FragmentNestingStatePagerSupport.TabsAdapter
103 mViewPager = pager;
104 mViewPager.setAdapter(this);
105 mViewPager.addOnPageChangeListener(this);
146 mViewPager
[all...]
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DTabLayoutPreselectedUsage.java45 private ViewPager mViewPager; field in class:TabLayoutPreselectedUsage
59 mViewPager = findViewById(R.id.tabs_viewpager);
67 mViewPager.setAdapter(mPagerAdapter);
68 mViewPager.setCurrentItem(2, false);
70 mTabLayout.setupWithViewPager(mViewPager);
H A DTabLayoutUsage.java46 private ViewPager mViewPager; field in class:TabLayoutUsage
62 mViewPager = findViewById(R.id.tabs_viewpager);
65 mViewPager.setAdapter(mPagerAdapter);
67 mTabLayout.setupWithViewPager(mViewPager);
79 mViewPager.setCurrentItem(0);
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
H A DFragmentTabsPager.java41 ViewPager mViewPager; field in class:FragmentTabsPager
52 mViewPager = (ViewPager)findViewById(R.id.pager);
54 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager);
91 private final ViewPager mViewPager; field in class:FragmentTabsPager.TabsAdapter
126 mViewPager = pager;
128 mViewPager.setAdapter(this);
129 mViewPager.addOnPageChangeListener(this);
156 mViewPager.setCurrentItem(position);
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
H A DFragmentTabsPager.java41 ViewPager mViewPager; field in class:FragmentTabsPager
52 mViewPager = (ViewPager)findViewById(R.id.pager);
54 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager);
91 private final ViewPager mViewPager; field in class:FragmentTabsPager.TabsAdapter
126 mViewPager = pager;
128 mViewPager.setAdapter(this);
129 mViewPager.addOnPageChangeListener(this);
156 mViewPager.setCurrentItem(position);
/frameworks/base/core/java/android/widget/
H A DDayPickerView.java53 private final ViewPager mViewPager; field in class:DayPickerView
131 mViewPager = findViewById(R.id.day_picker_view_pager);
132 mViewPager.setAdapter(mAdapter);
133 mViewPager.setOnPageChangeListener(mOnPageChangedListener);
191 final ViewPager viewPager = mViewPager;
227 mViewPager.layout(0, 0, width, height);
229 final SimpleMonthView monthView = (SimpleMonthView) mViewPager.getChildAt(0);
313 if (position != mViewPager.getCurrentItem()) {
314 mViewPager.setCurrentItem(position, animate);
326 if (position != mViewPager
[all...]
/frameworks/support/viewpager/src/androidTest/java/androidx/viewpager/widget/
H A DBaseViewPagerTest.java98 protected ViewPager mViewPager; field in class:BaseViewPagerTest
253 mViewPager = (ViewPager) activity.findViewById(R.id.pager);
269 assertEquals("Initial state", 0, mViewPager.getCurrentItem());
273 mViewPager.addOnPageChangeListener(mockPageChangeListener);
276 assertEquals("Scroll right", 1, mViewPager.getCurrentItem());
280 assertEquals("Scroll right", 2, mViewPager.getCurrentItem());
285 assertEquals("Scroll right beyond last page", 2, mViewPager.getCurrentItem());
290 assertEquals("Scroll left", 1, mViewPager.getCurrentItem());
295 assertEquals("Scroll left", 0, mViewPager.getCurrentItem());
301 assertEquals("Scroll left beyond first page", 0, mViewPager
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java152 protected PhotoViewPager mViewPager; field in class:PhotoViewController
319 mViewPager = (PhotoViewPager) findViewById(R.id.photo_view_pager);
320 mViewPager.setAdapter(mAdapter);
321 mViewPager.setOnPageChangeListener(this);
322 mViewPager.setOnInterceptTouchListener(this);
323 mViewPager.setPageMargin(resources.getDimensionPixelSize(R.dimen.photo_page_margin));
340 mViewPager.setVisibility(View.GONE);
541 if (mViewPager == null || mAdapter == null || mAdapter.getCount() == 0) {
544 return mFullScreen || (mViewPager.getCurrentItem() != mAdapter.getItemPosition(fragment));
638 if (mViewPager
[all...]

Completed in 140 milliseconds