Home
last modified time | relevance | path

Searched refs:mViewPager (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java50 private PagingAwareViewPager mViewPager; field in MediaPickerPanel
101 mViewPager = (PagingAwareViewPager) findViewById(R.id.mediapicker_view_pager); in onFinishInflate()
104 mViewPager.setOnTouchListener(mTouchHandler); in onFinishInflate()
117 setExpanded(mExpanded, false /* animate */, mViewPager.getCurrentItem(), in onFinishInflate()
138 mViewPager.setVisibility(View.GONE); in onMeasure()
139 mViewPager.setAdapter(null); in onMeasure()
163 measureChild(mViewPager, widthMeasureSpec, viewPagerHeightMeasureSpec); in onMeasure()
164 setMeasuredDimension(mViewPager.getMeasuredWidth(), desiredHeight); in onMeasure()
173 final int viewPagerHeight = mViewPager.getMeasuredHeight(); in onLayout()
174 mViewPager.layout(0, y, width, y + viewPagerHeight); in onLayout()
[all …]
DMediaPicker.java148 private ViewPager mViewPager; field in MediaPicker
240 mViewPager = (ViewPager) mMediaPickerPanel.findViewById(R.id.mediapicker_view_pager); in onCreateView()
241 mViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { in onCreateView()
267 mViewPager.setOffscreenPageLimit(0); in onCreateView()
268 mViewPager.setAdapter(mPagerAdapter); in onCreateView()
445 if (mViewPager != null) { in setSupportedMediaTypes()
446 mViewPager.setAdapter(mPagerAdapter); in setSupportedMediaTypes()
459 return mViewPager; in getViewPager()
519 if (mViewPager != null) { in selectChooser()
520 mViewPager.setCurrentItem(chooserIndex, true /* smoothScroll */); in selectChooser()
/packages/apps/Browser/src/com/android/browser/
DComboViewActivity.java44 private ViewPager mViewPager; field in ComboViewActivity
57 mViewPager = new ViewPager(this); in onCreate()
58 mViewPager.setId(R.id.tab_view); in onCreate()
59 setContentView(mViewPager); in onCreate()
71 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate()
81 mViewPager.setCurrentItem(0); in onCreate()
84 mViewPager.setCurrentItem(1); in onCreate()
87 mViewPager.setCurrentItem(2); in onCreate()
164 private final ViewPager mViewPager; field in ComboViewActivity.TabsAdapter
181 mViewPager = pager; in TabsAdapter()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DGalleryActivity.java39 private ViewPager mViewPager; field in GalleryActivity
46 mViewPager = new ViewPager(this); in onCreate()
47 mViewPager.setId(R.id.viewpager); in onCreate()
48 setContentView(mViewPager); in onCreate()
55 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate()
98 private final ViewPager mViewPager; field in GalleryActivity.TabsAdapter
116 mViewPager = pager; in TabsAdapter()
117 mViewPager.setAdapter(this); in TabsAdapter()
118 mViewPager.setOnPageChangeListener(this); in TabsAdapter()
167 mViewPager.setCurrentItem(i); in onTabSelected()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DBidiViewPagerHelper.java29 private ViewPager mViewPager; field in BidiViewPagerHelper
32 mViewPager = viewPager; in BidiViewPagerHelper()
40 return getIndexFromBidiIndex(mViewPager.getAdapter().getCount() - 1); in getLastPage()
44 return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.getCurrentItem()) - 1)); in getPreviousPage()
48 return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.getCurrentItem()) + 1)); in getNextPage()
52 return Math.max(0, Math.min(mViewPager.getAdapter().getCount() - 1, position)); in clampToBounds()
56 if (ViewUtils.isViewRtl(mViewPager)) { in getBidiIndex()
57 return mViewPager.getAdapter().getCount() - 1 - position; in getBidiIndex()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java74 private VerticalViewPager mViewPager; field in TimerFragment
156 mViewPager = (VerticalViewPager) view.findViewById(R.id.vertical_view_pager); in onCreateView()
208 mViewPager.setAdapter(mAdapter); in onResume()
209 mViewPager.setOnPageChangeListener(mOnPageChangeListener); in onResume()
235 final int timerPosition = ((TimerFragmentAdapter) mViewPager.getAdapter()) in onResume()
237 mViewPager.setCurrentItem(timerPosition); in onResume()
245 mViewPager.setCurrentItem(currPage); in onResume()
283 outState.putInt(CURR_PAGE, mViewPager.getCurrentItem()); in onSaveInstanceState()
309 mViewPager.removeCallbacks(mClockTick); in stopClockTicks()
475 mViewPager.setCurrentItem(0); in onFabClick()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DCustomHeaderViewPager.java36 private ViewPager mViewPager; field in CustomHeaderViewPager
47 mViewPager = (ViewPager) findViewById(R.id.pager); in CustomHeaderViewPager()
55 mViewPager.setCurrentItem(position); in setCurrentItem()
64 Assert.notNull(mViewPager); in setViewHolders()
66 mViewPager.setAdapter(adapter); in setViewHolders()
67 mTabstrip.setViewPager(mViewPager); in setViewHolders()
68 mViewPager.setOnPageChangeListener(new OnPageChangeListener() { in setViewHolders()
/packages/apps/Dialer/src/com/android/dialer/list/
DListsFragment.java74 private ViewPager mViewPager; field in ListsFragment
205 mViewPager = (ViewPager) parentView.findViewById(R.id.lists_pager); in onCreateView()
207 mViewPager.setAdapter(mViewPagerAdapter); in onCreateView()
208 mViewPager.setOffscreenPageLimit(TAB_COUNT_WITH_VOICEMAIL - 1); in onCreateView()
209 mViewPager.setOnPageChangeListener(this); in onCreateView()
226 mViewPagerTabs.setViewPager(mViewPager); in onCreateView()
251 mViewPager.setCurrentItem(getRtlPosition(TAB_INDEX_VOICEMAIL)); in showTab()
257 mViewPager.setCurrentItem(getRtlPosition(index)); in showTab()
308 mViewPagerTabs.setViewPager(mViewPager); in onVoicemailStatusFetched()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogActivity.java47 private ViewPager mViewPager; field in CallLogActivity
143 mViewPager = (ViewPager) findViewById(R.id.call_log_pager); in onCreate()
146 mViewPager.setAdapter(mViewPagerAdapter); in onCreate()
147 mViewPager.setOffscreenPageLimit(1); in onCreate()
148 mViewPager.setOnPageChangeListener(this); in onCreate()
152 mViewPagerTabs.setViewPager(mViewPager); in onCreate()
153 mViewPager.setCurrentItem(startingTab); in onCreate()
160 sendScreenViewForChildFragment(mViewPager.getCurrentItem()); in onResume()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DTabsAdapter.java46 private final ViewPager mViewPager; field in TabsAdapter
80 mViewPager = pager; in TabsAdapter()
82 mViewPager.setAdapter(this); in TabsAdapter()
83 mViewPager.setOnPageChangeListener(this); in TabsAdapter()
125 mViewPager.setCurrentItem(position); in onTabChanged()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsSummary.java41 private ViewPager mViewPager; field in AppOpsSummary
109 mViewPager = (ViewPager) rootView.findViewById(R.id.pager); in onCreateView()
111 mViewPager.setAdapter(adapter); in onCreateView()
112 mViewPager.setOnPageChangeListener(adapter); in onCreateView()
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.java90 private ViewPager mViewPager; field in DeskClock
123 mViewPager = (ViewPager) findViewById(R.id.desk_clock_pager); in initViews()
125 mViewPager.setOffscreenPageLimit(3); in initViews()
128 mViewPager.setAccessibilityDelegate(null); in initViews()
129 mTabsAdapter = new TabsAdapter(this, mViewPager); in initViews()