Home
last modified time | relevance | path

Searched refs:mPager (Results 1 – 7 of 7) sorted by relevance

/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DScreenSlideActivity.java52 private ViewPager mPager; field in ScreenSlideActivity
65 mPager = (ViewPager) findViewById(R.id.pager); in onCreate()
67 mPager.setAdapter(mPagerAdapter); in onCreate()
68 mPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in onCreate()
85 menu.findItem(R.id.action_previous).setEnabled(mPager.getCurrentItem() > 0); in onCreateOptionsMenu()
90 (mPager.getCurrentItem() == mPagerAdapter.getCount() - 1) in onCreateOptionsMenu()
109 mPager.setCurrentItem(mPager.getCurrentItem() - 1); in onOptionsItemSelected()
115 mPager.setCurrentItem(mPager.getCurrentItem() + 1); in onOptionsItemSelected()
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/ui/
DImageDetailActivity.java49 private ViewPager mPager; field in ImageDetailActivity
85 mPager = (ViewPager) findViewById(R.id.pager); in onCreate()
86 mPager.setAdapter(mAdapter); in onCreate()
87 mPager.setPageMargin((int) getResources().getDimension(R.dimen.image_detail_pager_margin)); in onCreate()
88 mPager.setOffscreenPageLimit(2); in onCreate()
103 mPager.setOnSystemUiVisibilityChangeListener( in onCreate()
116 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); in onCreate()
123 mPager.setCurrentItem(extraCurrentItem); in onCreate()
205 final int vis = mPager.getSystemUiVisibility(); in onClick()
207 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE); in onClick()
[all …]
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DFragmentStatePagerSupport.java46 ViewPager mPager; field in FragmentStatePagerSupport
55 mPager = (ViewPager)findViewById(R.id.pager); in onCreate()
56 mPager.setAdapter(mAdapter); in onCreate()
62 mPager.setCurrentItem(0); in onCreate()
68 mPager.setCurrentItem(NUM_ITEMS-1); in onCreate()
DFragmentPagerSupport.java46 ViewPager mPager; field in FragmentPagerSupport
55 mPager = (ViewPager)findViewById(R.id.pager); in onCreate()
56 mPager.setAdapter(mAdapter); in onCreate()
62 mPager.setCurrentItem(0); in onCreate()
68 mPager.setCurrentItem(NUM_ITEMS-1); in onCreate()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentPagerSupport.java45 ViewPager mPager; field in FragmentPagerSupport
54 mPager = (ViewPager)findViewById(R.id.pager); in onCreate()
55 mPager.setAdapter(mAdapter); in onCreate()
61 mPager.setCurrentItem(0); in onCreate()
67 mPager.setCurrentItem(NUM_ITEMS-1); in onCreate()
DFragmentStatePagerSupport.java46 ViewPager mPager; field in FragmentStatePagerSupport
55 mPager = (ViewPager)findViewById(R.id.pager); in onCreate()
56 mPager.setAdapter(mAdapter); in onCreate()
62 mPager.setCurrentItem(0); in onCreate()
68 mPager.setCurrentItem(NUM_ITEMS-1); in onCreate()
/development/samples/training/ads-and-ux/src/com/example/training/ads/
DAdsCatalogActivity.java45 ViewPager mPager; field in AdsCatalogActivity
54 mPager = (ViewPager) findViewById(R.id.pager); in onCreate()
55 mPager.setAdapter(mAdapter); in onCreate()
61 mPager.setCurrentItem(0); in onOptionsItemSelected()