Lines Matching refs:mViewPager
94 protected PhotoViewPager mViewPager;
184 mViewPager = (PhotoViewPager) findViewById(R.id.photo_view_pager);
185 mViewPager.setAdapter(mAdapter);
186 mViewPager.setOnPageChangeListener(this);
187 mViewPager.setOnInterceptTouchListener(this);
188 mViewPager.setPageMargin(resources.getDimensionPixelSize(R.dimen.photo_page_margin));
239 outState.putInt(STATE_ITEM_KEY, mViewPager.getCurrentItem());
277 if (mViewPager == null || mAdapter == null || mAdapter.getCount() == 0) {
280 return mFullScreen || (mViewPager.getCurrentItem() != mAdapter.getItemPosition(fragment));
347 if (mViewPager.getAdapter() == null) {
348 mViewPager.setAdapter(mAdapter);
360 mViewPager.setCurrentItem(itemIndex, false);
405 if (mViewPager == null || mAdapter == null) {
408 return mViewPager.getCurrentItem() == mAdapter.getItemPosition(fragment);
483 // using mViewPager since we have it and we need a view
484 mViewPager.setSystemUiVisibility(flags);
495 mViewPager.setSystemUiVisibility(flags);
518 final int position = mViewPager.getCurrentItem() + 1;
569 if (mViewPager == null) {
573 final int position = mViewPager.getCurrentItem();