Home
last modified time | relevance | path

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

/development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/
DSlidingTabsBasicFragment.java49 private ViewPager mViewPager; field in SlidingTabsBasicFragment
75 mViewPager = (ViewPager) view.findViewById(R.id.viewpager); in onViewCreated()
76 mViewPager.setAdapter(new SamplePagerAdapter()); in onViewCreated()
83 mSlidingTabLayout.setViewPager(mViewPager); in onViewCreated()
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/
DMainActivity.java37 private ViewPager mViewPager; field in MainActivity
44 mViewPager = (ViewPager) findViewById(R.id.pager); in onCreate()
49 mViewPager.setAdapter(adapter); in onCreate()
50 mViewPager.setOnPageChangeListener(new OnPageChangeListener() { in onCreate()
/development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/
DMainActivity.java33 ViewPager mViewPager; field in MainActivity
67 mViewPager = (ViewPager) findViewById(R.id.pager); in onCreate()
68 mViewPager.setAdapter(mSectionsPagerAdapter); in onCreate()
74 mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in onCreate()
108 mViewPager.setCurrentItem(tab.getPosition()); in onTabSelected()
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/
DMainActivity.java47 ViewPager mViewPager; field in MainActivity
69 mViewPager = (ViewPager) findViewById(R.id.pager); in onCreate()
70 mViewPager.setAdapter(mAppSectionsPagerAdapter); in onCreate()
71 mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in onCreate()
100 mViewPager.setCurrentItem(tab.getPosition()); in onTabSelected()
DCollectionDemoActivity.java49 ViewPager mViewPager; field in CollectionDemoActivity
70 mViewPager = (ViewPager) findViewById(R.id.pager); in onCreate()
71 mViewPager.setAdapter(mDemoCollectionPagerAdapter); in onCreate()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/
DSlidingTabsColorsFragment.java97 private ViewPager mViewPager; field in SlidingTabsColorsFragment
164 mViewPager = (ViewPager) view.findViewById(R.id.viewpager); in onViewCreated()
165 mViewPager.setAdapter(new SampleFragmentPagerAdapter(getChildFragmentManager())); in onViewCreated()
172 mSlidingTabLayout.setViewPager(mViewPager); in onViewCreated()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabLayout.java77 private ViewPager mViewPager; field in SlidingTabLayout
160 mViewPager = viewPager; in setViewPager()
198 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
231 if (mViewPager != null) { in onAttachedToWindow()
232 scrollToTab(mViewPager.getCurrentItem(), 0); in onAttachedToWindow()
307 mViewPager.setCurrentItem(i); in onClick()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabLayout.java77 private ViewPager mViewPager; field in SlidingTabLayout
160 mViewPager = viewPager; in setViewPager()
198 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
231 if (mViewPager != null) { in onAttachedToWindow()
232 scrollToTab(mViewPager.getCurrentItem(), 0); in onAttachedToWindow()
307 mViewPager.setCurrentItem(i); in onClick()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabLayout.java77 private ViewPager mViewPager; field in SlidingTabLayout
160 mViewPager = viewPager; in setViewPager()
198 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
231 if (mViewPager != null) { in onAttachedToWindow()
232 scrollToTab(mViewPager.getCurrentItem(), 0); in onAttachedToWindow()
307 mViewPager.setCurrentItem(i); in onClick()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabLayout.java77 private ViewPager mViewPager; field in SlidingTabLayout
160 mViewPager = viewPager; in setViewPager()
198 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
231 if (mViewPager != null) { in onAttachedToWindow()
232 scrollToTab(mViewPager.getCurrentItem(), 0); in onAttachedToWindow()
307 mViewPager.setCurrentItem(i); in onClick()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabLayout.java77 private ViewPager mViewPager; field in SlidingTabLayout
160 mViewPager = viewPager; in setViewPager()
198 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
231 if (mViewPager != null) { in onAttachedToWindow()
232 scrollToTab(mViewPager.getCurrentItem(), 0); in onAttachedToWindow()
307 mViewPager.setCurrentItem(i); in onClick()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabLayout.java77 private ViewPager mViewPager; field in SlidingTabLayout
160 mViewPager = viewPager; in setViewPager()
198 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
231 if (mViewPager != null) { in onAttachedToWindow()
232 scrollToTab(mViewPager.getCurrentItem(), 0); in onAttachedToWindow()
307 mViewPager.setCurrentItem(i); in onClick()