OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mViewPager
(Results
1 - 25
of
47
) sorted by null
1
2
/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;
/development/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
.setOnPageChangeListener(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
.setOnPageChangeListener(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
...]
/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/Browser/src/com/android/browser/
ComboViewActivity.java
44
private ViewPager
mViewPager
;
57
mViewPager
= new ViewPager(this);
58
mViewPager
.setId(R.id.tab_view);
59
setContentView(
mViewPager
);
71
mTabsAdapter = new TabsAdapter(this,
mViewPager
);
81
mViewPager
.setCurrentItem(0);
84
mViewPager
.setCurrentItem(1);
87
mViewPager
.setCurrentItem(2);
164
private final ViewPager
mViewPager
;
181
mViewPager
= pager
[
all
...]
/packages/apps/Dialer/src/com/android/dialer/calllog/
CallLogActivity.java
47
private ViewPager
mViewPager
;
72
mViewPagerTabs.setViewPager(
mViewPager
);
73
mViewPager
.setCurrentItem(TAB_INDEX_ALL);
165
mViewPager
= (ViewPager) findViewById(R.id.call_log_pager);
168
mViewPager
.setAdapter(mViewPagerAdapter);
169
mViewPager
.setOffscreenPageLimit(2);
170
mViewPager
.setOnPageChangeListener(this);
182
mViewPagerTabs.setViewPager(
mViewPager
);
183
mViewPager
.setCurrentItem(startingTab);
195
sendScreenViewForChildFragment(
mViewPager
.getCurrentItem())
[
all
...]
/development/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
.setOnPageChangeListener(this);
155
mViewPager
.setCurrentItem(position);
/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
);
/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/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/Wearable/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() {
/packages/apps/Settings/src/com/android/settings/applications/
AppOpsSummary.java
38
private ViewPager
mViewPager
;
101
mViewPager
= (ViewPager) rootView.findViewById(R.id.pager);
103
mViewPager
.setAdapter(adapter);
104
mViewPager
.setOnPageChangeListener(adapter);
/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/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());
/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/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/PackageInstaller/src/com/android/packageinstaller/
TabsAdapter.java
46
private final ViewPager
mViewPager
;
80
mViewPager
= pager;
82
mViewPager
.setAdapter(this);
83
mViewPager
.setOnPageChangeListener(this);
125
mViewPager
.setCurrentItem(position);
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
Test4DetailFragment.java
48
ViewPager
mViewPager
;
81
mViewPager
= (ViewPager) rootView.findViewById(R.id.test_4_detail_container);
82
mViewPager
.setAdapter(mSectionsPagerAdapter);
87
mViewPager
.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
/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/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
);
/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
);
Completed in 2523 milliseconds
1
2