Home
last modified time | relevance | path

Searched refs:mPager (Results 1 – 8 of 8) 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/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DImageDetailActivity.java50 private ViewPager mPager; field in ImageDetailActivity
86 mPager = (ViewPager) findViewById(R.id.pager); in onCreate()
87 mPager.setAdapter(mAdapter); in onCreate()
88 mPager.setPageMargin((int) getResources().getDimension(R.dimen.horizontal_page_margin)); in onCreate()
89 mPager.setOffscreenPageLimit(2); in onCreate()
104 mPager.setOnSystemUiVisibilityChangeListener( in onCreate()
117 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); in onCreate()
124 mPager.setCurrentItem(extraCurrentItem); in onCreate()
206 final int vis = mPager.getSystemUiVisibility(); in onClick()
208 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE); in onClick()
[all …]
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutLauncherMain.java33 private ViewPager mPager; field in ShortcutLauncherMain
46 mPager = (ViewPager) findViewById(R.id.pager); in onCreate()
47 mPager.setOffscreenPageLimit(2); in onCreate()
49 mPager.setAdapter(mPagerAdapter); in onCreate()
68 mPager.setCurrentItem(tab.getPosition());
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DShowcaseFragment.java45 private ViewPager mPager; field in ShowcaseFragment
70 mPager = new ViewPager(context); in onCreateView()
76 mPager.setLayoutParams(params); in onCreateView()
81 mPager.addView(pagerTitleView); in onCreateView()
82 backgroundLayout.addView(mPager); in onCreateView()
91 mPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { in onCreateView()
101 mPager.setAdapter(mAdapter); in onCreateView()
149 mPager.setCurrentItem(++mIndex); in next()
/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()
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/
DMainActivity.java74 private ViewPager mPager; field in MainActivity
97 mPager = (ViewPager) findViewById(R.id.pager); in setupViews()
106 mPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { in setupViews()
122 mPager.setAdapter(adapter); in setupViews()
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/
DGridExampleActivity.java45 GridViewPager mPager; field in GridExampleActivity
52 mPager = (GridViewPager) findViewById(R.id.fragment_container); in onCreate()
54 mPager.setAdapter(mAdapter); in onCreate()
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/
DMainActivity.java92 private GridViewPager mPager; field in MainActivity
259 mPager = (GridViewPager) findViewById(R.id.pager); in setupViews()
260 mPager.setOffscreenPageCount(2); in setupViews()
263 dotsPageIndicator.setPager(mPager); in setupViews()
272 mPager.setAdapter(adapter); in setupViews()
279 mPager.setCurrentItem(0, index, true); in moveToPage()