Home
last modified time | relevance | path

Searched refs:mViewPager (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/widget/
DDayPickerView.java52 private final ViewPager mViewPager; field in DayPickerView
130 mViewPager = (ViewPager) findViewById(R.id.day_picker_view_pager); in DayPickerView()
131 mViewPager.setAdapter(mAdapter); in DayPickerView()
132 mViewPager.setOnPageChangeListener(mOnPageChangedListener); in DayPickerView()
190 final ViewPager viewPager = mViewPager;
226 mViewPager.layout(0, 0, width, height);
228 final SimpleMonthView monthView = (SimpleMonthView) mViewPager.getChildAt(0);
300 if (position != mViewPager.getCurrentItem()) {
301 mViewPager.setCurrentItem(position, animate);
348 updateButtonVisibility(mViewPager.getCurrentItem());
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java149 protected PhotoViewPager mViewPager; field in PhotoViewController
307 mViewPager = (PhotoViewPager) findViewById(R.id.photo_view_pager); in onCreate()
308 mViewPager.setAdapter(mAdapter); in onCreate()
309 mViewPager.setOnPageChangeListener(this); in onCreate()
310 mViewPager.setOnInterceptTouchListener(this); in onCreate()
311 mViewPager.setPageMargin(resources.getDimensionPixelSize(R.dimen.photo_page_margin)); in onCreate()
326 mViewPager.setVisibility(View.GONE); in onCreate()
475 if (mViewPager == null || mAdapter == null || mAdapter.getCount() == 0) { in isFragmentFullScreen()
478 return mFullScreen || (mViewPager.getCurrentItem() != mAdapter.getItemPosition(fragment)); in isFragmentFullScreen()
572 if (mViewPager.getAdapter() == null) { in onLoadFinished()
[all …]
/frameworks/base/docs/html/training/implementing-navigation/
Dlateral.jd99 ViewPager mViewPager;
110 mViewPager = (ViewPager) findViewById(R.id.pager);
111 mViewPager.setAdapter(mDemoCollectionPagerAdapter);
238 mViewPager.setCurrentItem(tab.getPosition());
255 mViewPager = (ViewPager) findViewById(R.id.pager);
256 mViewPager.setOnPageChangeListener(
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java1619 private final ViewPager mViewPager; field in TabLayout.ViewPagerOnTabSelectedListener
1622 mViewPager = viewPager; in ViewPagerOnTabSelectedListener()
1627 mViewPager.setCurrentItem(tab.getPosition()); in onTabSelected()