HomeSort by relevance Sort by last modified time
    Searched defs:mViewPager (Results 1 - 25 of 52) sorted by null

1 2 3

  /frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/
ActionBarTabsPager.java 38 ViewPager mViewPager;
45 mViewPager = new ViewPager(this);
46 mViewPager.setId(R.id.pager);
47 setContentView(mViewPager);
53 mTabsAdapter = new TabsAdapter(this, mViewPager);
87 private final ViewPager mViewPager;
104 mViewPager = pager;
105 mViewPager.setAdapter(this);
106 mViewPager.addOnPageChangeListener(this);
147 mViewPager.setCurrentItem(i)
    [all...]
FragmentNestingPagerSupport.java 34 ViewPager mViewPager;
41 mViewPager = new ViewPager(this);
42 mViewPager.setId(R.id.pager);
43 setContentView(mViewPager);
49 mTabsAdapter = new TabsAdapter(this, mViewPager);
85 private final ViewPager mViewPager;
102 mViewPager = pager;
103 mViewPager.setAdapter(this);
104 mViewPager.addOnPageChangeListener(this);
145 mViewPager.setCurrentItem(i)
    [all...]
FragmentNestingStatePagerSupport.java 34 ViewPager mViewPager;
41 mViewPager = new ViewPager(this);
42 mViewPager.setId(R.id.pager);
43 setContentView(mViewPager);
49 mTabsAdapter = new TabsAdapter(this, mViewPager);
85 private final ViewPager mViewPager;
102 mViewPager = pager;
103 mViewPager.setAdapter(this);
104 mViewPager.setOnPageChangeListener(this);
145 mViewPager.setCurrentItem(i)
    [all...]
  /developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/slidingtabsbasic/
SlidingTabsBasicFragment.java 49 private ViewPager mViewPager;
75 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
76 mViewPager.setAdapter(new SamplePagerAdapter());
83 mSlidingTabLayout.setViewPager(mViewPager);
  /developers/samples/android/ui/views/SlidingTabs/SlidingTabsBasic/Application/src/main/java/com/example/android/slidingtabsbasic/
SlidingTabsBasicFragment.java 49 private ViewPager mViewPager;
75 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
76 mViewPager.setAdapter(new SamplePagerAdapter());
83 mSlidingTabLayout.setViewPager(mViewPager);
  /development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/
SlidingTabsBasicFragment.java 49 private ViewPager mViewPager;
75 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
76 mViewPager.setAdapter(new SamplePagerAdapter());
83 mSlidingTabLayout.setViewPager(mViewPager);
  /packages/apps/Messaging/src/com/android/messaging/ui/
CustomHeaderViewPager.java 36 private ViewPager mViewPager;
47 mViewPager = (ViewPager) findViewById(R.id.pager);
55 mViewPager.setCurrentItem(position);
64 Assert.notNull(mViewPager);
66 mViewPager.setAdapter(adapter);
67 mTabstrip.setViewPager(mViewPager);
68 mViewPager.setOnPageChangeListener(new OnPageChangeListener() {
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
BidiViewPagerHelper.java 29 private ViewPager mViewPager;
32 mViewPager = viewPager;
40 return getIndexFromBidiIndex(mViewPager.getAdapter().getCount() - 1);
44 return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.getCurrentItem()) - 1));
48 return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.getCurrentItem()) + 1));
52 return Math.max(0, Math.min(mViewPager.getAdapter().getCount() - 1, position));
56 if (ViewUtils.isViewRtl(mViewPager)) {
57 return mViewPager.getAdapter().getCount() - 1 - position;
  /developers/build/prebuilts/gradle/Flashlight/Wearable/src/main/java/com/example/android/wearable/flashlight/
MainActivity.java 37 private ViewPager mViewPager;
44 mViewPager = (ViewPager) findViewById(R.id.pager);
49 mViewPager.setAdapter(adapter);
50 mViewPager.setOnPageChangeListener(new OnPageChangeListener() {
  /developers/build/prebuilts/gradle/HorizontalPaging/Application/src/main/java/com/example/android/horizontalpaging/
MainActivity.java 33 ViewPager mViewPager;
55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
67 mViewPager = (ViewPager) findViewById(R.id.pager);
68 mViewPager.setAdapter(mSectionsPagerAdapter);
74 mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
108 mViewPager.setCurrentItem(tab.getPosition());
  /developers/build/prebuilts/gradle/SlidingTabsColors/Application/src/main/java/com/example/android/slidingtabscolors/
SlidingTabsColorsFragment.java 97 private ViewPager mViewPager;
164 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
165 mViewPager.setAdapter(new SampleFragmentPagerAdapter(getChildFragmentManager()));
172 mSlidingTabLayout.setViewPager(mViewPager);
  /developers/samples/android/ui/views/HorizontalPaging/Application/src/main/java/com/example/android/horizontalpaging/
MainActivity.java 33 ViewPager mViewPager;
55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
67 mViewPager = (ViewPager) findViewById(R.id.pager);
68 mViewPager.setAdapter(mSectionsPagerAdapter);
74 mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
108 mViewPager.setCurrentItem(tab.getPosition());
  /developers/samples/android/ui/views/SlidingTabs/SlidingTabsColors/Application/src/main/java/com/example/android/slidingtabscolors/
SlidingTabsColorsFragment.java 97 private ViewPager mViewPager;
164 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
165 mViewPager.setAdapter(new SampleFragmentPagerAdapter(getChildFragmentManager()));
172 mSlidingTabLayout.setViewPager(mViewPager);
  /developers/samples/android/wearable/wear/Flashlight/Wearable/src/main/java/com/example/android/wearable/flashlight/
MainActivity.java 37 private ViewPager mViewPager;
44 mViewPager = (ViewPager) findViewById(R.id.pager);
49 mViewPager.setAdapter(adapter);
50 mViewPager.setOnPageChangeListener(new OnPageChangeListener() {
  /development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/
MainActivity.java 37 private ViewPager mViewPager;
44 mViewPager = (ViewPager) findViewById(R.id.pager);
49 mViewPager.setAdapter(adapter);
50 mViewPager.setOnPageChangeListener(new OnPageChangeListener() {
  /development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/
MainActivity.java 33 ViewPager mViewPager;
55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
67 mViewPager = (ViewPager) findViewById(R.id.pager);
68 mViewPager.setAdapter(mSectionsPagerAdapter);
74 mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
108 mViewPager.setCurrentItem(tab.getPosition());
  /development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/
SlidingTabsColorsFragment.java 97 private ViewPager mViewPager;
164 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
165 mViewPager.setAdapter(new SampleFragmentPagerAdapter(getChildFragmentManager()));
172 mSlidingTabLayout.setViewPager(mViewPager);
  /development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/
MainActivity.java 47 ViewPager mViewPager;
69 mViewPager = (ViewPager) findViewById(R.id.pager);
70 mViewPager.setAdapter(mAppSectionsPagerAdapter);
71 mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
100 mViewPager.setCurrentItem(tab.getPosition());
CollectionDemoActivity.java 49 ViewPager mViewPager;
70 mViewPager = (ViewPager) findViewById(R.id.pager);
71 mViewPager.setAdapter(mDemoCollectionPagerAdapter);
  /packages/apps/Settings/src/com/android/settings/dashboard/
DashboardContainerFragment.java 53 private RtlCompatibleViewPager mViewPager;
71 mViewPager = (RtlCompatibleViewPager) content.findViewById(R.id.pager);
73 getChildFragmentManager(), mViewPager);
74 mViewPager.setAdapter(mPagerAdapter);
75 mViewPager.addOnPageChangeListener(
82 mViewPager.setCurrentItem(INDEX_SUPPORT_FRAGMENT);
84 mViewPager.setCurrentItem(INDEX_SUMMARY_FRAGMENT);
88 ((SlidingTabLayout) mHeaderView).setViewPager(mViewPager);
107 private final RtlCompatibleViewPager mViewPager;
115 mViewPager = viewPager
    [all...]
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
FragmentTabsPager.java 40 ViewPager mViewPager;
51 mViewPager = (ViewPager)findViewById(R.id.pager);
53 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager);
90 private final ViewPager mViewPager;
125 mViewPager = pager;
127 mViewPager.setAdapter(this);
128 mViewPager.addOnPageChangeListener(this);
155 mViewPager.setCurrentItem(position);
  /packages/apps/Dialer/src/com/android/dialer/calllog/
CallLogActivity.java 48 private ViewPager mViewPager;
145 mViewPager = (ViewPager) findViewById(R.id.call_log_pager);
148 mViewPager.setAdapter(mViewPagerAdapter);
149 mViewPager.setOffscreenPageLimit(1);
150 mViewPager.setOnPageChangeListener(this);
154 mViewPagerTabs.setViewPager(mViewPager);
155 mViewPager.setCurrentItem(startingTab);
162 sendScreenViewForChildFragment(mViewPager.getCurrentItem());
  /packages/apps/Gallery2/src/com/android/photos/
GalleryActivity.java 39 private ViewPager mViewPager;
46 mViewPager = new ViewPager(this);
47 mViewPager.setId(R.id.viewpager);
48 setContentView(mViewPager);
55 mTabsAdapter = new TabsAdapter(this, mViewPager);
98 private final ViewPager mViewPager;
116 mViewPager = pager;
117 mViewPager.setAdapter(this);
118 mViewPager.setOnPageChangeListener(this);
167 mViewPager.setCurrentItem(i)
    [all...]
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
TabsAdapter.java 46 private final ViewPager mViewPager;
79 mViewPager = pager;
81 mViewPager.setAdapter(this);
82 mViewPager.setOnPageChangeListener(this);
120 mViewPager.setCurrentItem(position);
  /packages/apps/Settings/src/com/android/settings/applications/
AppOpsSummary.java 41 private ViewPager mViewPager;
109 mViewPager = (ViewPager) rootView.findViewById(R.id.pager);
111 mViewPager.setAdapter(adapter);
112 mViewPager.setOnPageChangeListener(adapter);

Completed in 1742 milliseconds

1 2 3