HomeSort by relevance Sort by last modified time
    Searched refs:mPager (Results 1 - 25 of 60) sorted by null

1 2 3

  /development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
ScreenSlideActivity.java 52 private ViewPager mPager;
65 mPager = (ViewPager) findViewById(R.id.pager);
67 mPager.setAdapter(mPagerAdapter);
68 mPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
85 menu.findItem(R.id.action_previous).setEnabled(mPager.getCurrentItem() > 0);
90 (mPager.getCurrentItem() == mPagerAdapter.getCount() - 1)
109 mPager.setCurrentItem(mPager.getCurrentItem() - 1);
115 mPager.setCurrentItem(mPager.getCurrentItem() + 1)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
ConversationPagerController.java 62 private ViewPager mPager;
95 mPager = (ViewPager) activity.findViewById(R.id.conversation_pager);
135 mPager.setAlpha(0f);
136 mPager.setVisibility(View.VISIBLE);
139 mPager.animate().alpha(1f)
146 mPager.setAlpha(1f);
147 mPager.setVisibility(View.VISIBLE);
151 mPagerAdapter = new ConversationPagerAdapter(mPager.getContext(), mFragmentManager,
155 mPagerAdapter.setPager(mPager);
161 mPager.setAdapter(mPagerAdapter)
    [all...]
ConversationPagerAdapter.java 85 private ViewPager mPager;
366 sb.append(" mPager=");
367 sb.append(mPager);
396 if (mController != null && !mDetachedMode && mPager != null) {
407 final int currentItem = mPager.getCurrentItem();
490 if (mPager != null) {
491 mPager.setOnPageChangeListener(null);
493 mPager = pager;
494 if (mPager != null) {
495 mPager.setOnPageChangeListener(this)
    [all...]
  /development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
ShortcutLauncherMain.java 32 private ViewPager mPager;
41 mPager = (ViewPager) findViewById(R.id.pager);
42 mPager.setOffscreenPageLimit(2);
44 mPager.setAdapter(mPagerAdapter);
60 mPager.setCurrentItem(tab.getPosition());
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/
ImageDetailActivity.java 50 private ViewPager mPager;
86 mPager = (ViewPager) findViewById(R.id.pager);
87 mPager.setAdapter(mAdapter);
88 mPager.setPageMargin((int) getResources().getDimension(R.dimen.horizontal_page_margin));
89 mPager.setOffscreenPageLimit(2);
104 mPager.setOnSystemUiVisibilityChangeListener(
117 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
124 mPager.setCurrentItem(extraCurrentItem);
206 final int vis = mPager.getSystemUiVisibility();
208 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE)
    [all...]
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/
ImageDetailActivity.java 50 private ViewPager mPager;
86 mPager = (ViewPager) findViewById(R.id.pager);
87 mPager.setAdapter(mAdapter);
88 mPager.setPageMargin((int) getResources().getDimension(R.dimen.horizontal_page_margin));
89 mPager.setOffscreenPageLimit(2);
104 mPager.setOnSystemUiVisibilityChangeListener(
117 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
124 mPager.setCurrentItem(extraCurrentItem);
206 final int vis = mPager.getSystemUiVisibility();
208 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE)
    [all...]
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
ImageDetailActivity.java 50 private ViewPager mPager;
86 mPager = (ViewPager) findViewById(R.id.pager);
87 mPager.setAdapter(mAdapter);
88 mPager.setPageMargin((int) getResources().getDimension(R.dimen.horizontal_page_margin));
89 mPager.setOffscreenPageLimit(2);
104 mPager.setOnSystemUiVisibilityChangeListener(
117 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
124 mPager.setCurrentItem(extraCurrentItem);
206 final int vis = mPager.getSystemUiVisibility();
208 mPager.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE)
    [all...]
  /frameworks/support/core-ui/java/android/support/v4/view/
PagerTitleStrip.java 51 ViewPager mPager;
260 mPager = pager;
267 if (mPager != null) {
268 updateAdapter(mPager.getAdapter(), null);
269 mPager.setInternalPageChangeListener(null);
270 mPager.removeOnAdapterChangeListener(mPageListener);
271 mPager = null;
330 if (mPager != null) {
333 updateText(mPager.getCurrentItem(), newAdapter);
340 updateText(position, mPager.getAdapter())
    [all...]
PagerTabStrip.java 109 mPager.setCurrentItem(mPager.getCurrentItem() - 1);
117 mPager.setCurrentItem(mPager.getCurrentItem() + 1);
249 mPager.setCurrentItem(mPager.getCurrentItem() - 1);
251 mPager.setCurrentItem(mPager.getCurrentItem() + 1);
  /frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/
FragmentPagerSupport.java 46 ViewPager mPager;
55 mPager = (ViewPager)findViewById(R.id.pager);
56 mPager.setAdapter(mAdapter);
62 mPager.setCurrentItem(0);
68 mPager.setCurrentItem(NUM_ITEMS-1);
FragmentStatePagerSupport.java 46 ViewPager mPager;
55 mPager = (ViewPager)findViewById(R.id.pager);
56 mPager.setAdapter(mAdapter);
62 mPager.setCurrentItem(0);
68 mPager.setCurrentItem(NUM_ITEMS-1);
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
FragmentPagerSupport.java 45 ViewPager mPager;
54 mPager = (ViewPager)findViewById(R.id.pager);
55 mPager.setAdapter(mAdapter);
61 mPager.setCurrentItem(0);
67 mPager.setCurrentItem(NUM_ITEMS-1);
FragmentStatePagerSupport.java 46 ViewPager mPager;
55 mPager = (ViewPager)findViewById(R.id.pager);
56 mPager.setAdapter(mAdapter);
62 mPager.setCurrentItem(0);
68 mPager.setCurrentItem(NUM_ITEMS-1);
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/view/
ViewPagerActivity.java 34 private ViewPager mPager;
49 mPager = (ViewPager) findViewById(R.id.pager);
50 mPager.setAdapter(mAdapter);
  /development/samples/training/ads-and-ux/src/com/example/training/ads/
AdsCatalogActivity.java 45 ViewPager mPager;
54 mPager = (ViewPager) findViewById(R.id.pager);
55 mPager.setAdapter(mAdapter);
61 mPager.setCurrentItem(0);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ViewPagerTabs.java 47 ViewPager mPager;
109 Toast toast = Toast.makeText(context, mPager.getAdapter().getPageTitle(mPosition),
153 mPager = viewPager;
154 addTabs(mPager.getAdapter());
230 mPager.setCurrentItem(getRtlPosition(position));
268 if (index < mPager.getAdapter().getCount()) {
269 addTab(mPager.getAdapter().getPageTitle(index), index);
  /packages/apps/Terminal/src/com/android/terminal/
TerminalActivity.java 47 private ViewPager mPager;
151 mPager = (ViewPager) findViewById(R.id.pager);
154 mPager.setAdapter(mTermAdapter);
191 mPager.setCurrentItem(index, true);
195 final int index = mPager.getCurrentItem();
  /developers/build/prebuilts/gradle/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/
GridExampleActivity.java 45 GridViewPager mPager;
52 mPager = (GridViewPager) findViewById(R.id.fragment_container);
54 mPager.setAdapter(mAdapter);
  /developers/samples/android/wearable/wear/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/
GridExampleActivity.java 45 GridViewPager mPager;
52 mPager = (GridViewPager) findViewById(R.id.fragment_container);
54 mPager.setAdapter(mAdapter);
  /development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/
GridExampleActivity.java 45 GridViewPager mPager;
52 mPager = (GridViewPager) findViewById(R.id.fragment_container);
54 mPager.setAdapter(mAdapter);
  /developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
MainActivity.java 74 private ViewPager mPager;
97 mPager = (ViewPager) findViewById(R.id.pager);
106 mPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
122 mPager.setAdapter(adapter);
  /developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
MainActivity.java 74 private ViewPager mPager;
97 mPager = (ViewPager) findViewById(R.id.pager);
106 mPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
122 mPager.setAdapter(adapter);
  /development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/
MainActivity.java 74 private ViewPager mPager;
97 mPager = (ViewPager) findViewById(R.id.pager);
106 mPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
122 mPager.setAdapter(adapter);
  /packages/apps/Messaging/src/com/android/messaging/ui/
ViewPagerTabs.java 52 ViewPager mPager;
144 mPager = viewPager;
145 addTabs(mPager.getAdapter());
165 mPager.setCurrentItem(getRtlPosition(position));
  /developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/
MainActivity.java 92 private GridViewPager mPager;
259 mPager = (GridViewPager) findViewById(R.id.pager);
260 mPager.setOffscreenPageCount(2);
263 dotsPageIndicator.setPager(mPager);
272 mPager.setAdapter(adapter);
279 mPager.setCurrentItem(0, index, true);

Completed in 497 milliseconds

1 2 3