/development/samples/Support13Demos/src/com/example/android/supportv13/app/ |
D | ActionBarTabsPager.java | 38 ViewPager mViewPager; field in ActionBarTabsPager 45 mViewPager = new ViewPager(this); in onCreate() 46 mViewPager.setId(R.id.pager); in onCreate() 47 setContentView(mViewPager); in onCreate() 53 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate() 87 private final ViewPager mViewPager; field in ActionBarTabsPager.TabsAdapter 104 mViewPager = pager; in TabsAdapter() 105 mViewPager.setAdapter(this); in TabsAdapter() 106 mViewPager.setOnPageChangeListener(this); in TabsAdapter() 147 mViewPager.setCurrentItem(i); in onTabSelected()
|
D | FragmentNestingStatePagerSupport.java | 34 ViewPager mViewPager; field in FragmentNestingStatePagerSupport 41 mViewPager = new ViewPager(this); in onCreate() 42 mViewPager.setId(R.id.pager); in onCreate() 43 setContentView(mViewPager); in onCreate() 49 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate() 85 private final ViewPager mViewPager; field in FragmentNestingStatePagerSupport.TabsAdapter 102 mViewPager = pager; in TabsAdapter() 103 mViewPager.setAdapter(this); in TabsAdapter() 104 mViewPager.setOnPageChangeListener(this); in TabsAdapter() 145 mViewPager.setCurrentItem(i); in onTabSelected()
|
D | FragmentNestingPagerSupport.java | 34 ViewPager mViewPager; field in FragmentNestingPagerSupport 41 mViewPager = new ViewPager(this); in onCreate() 42 mViewPager.setId(R.id.pager); in onCreate() 43 setContentView(mViewPager); in onCreate() 49 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate() 85 private final ViewPager mViewPager; field in FragmentNestingPagerSupport.TabsAdapter 102 mViewPager = pager; in TabsAdapter() 103 mViewPager.setAdapter(this); in TabsAdapter() 104 mViewPager.setOnPageChangeListener(this); in TabsAdapter() 145 mViewPager.setCurrentItem(i); in onTabSelected()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | FragmentTabsPager.java | 40 ViewPager mViewPager; field in FragmentTabsPager 51 mViewPager = (ViewPager)findViewById(R.id.pager); in onCreate() 53 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager); in onCreate() 90 private final ViewPager mViewPager; field in FragmentTabsPager.TabsAdapter 125 mViewPager = pager; in TabsAdapter() 127 mViewPager.setAdapter(this); in TabsAdapter() 128 mViewPager.setOnPageChangeListener(this); in TabsAdapter() 155 mViewPager.setCurrentItem(position); in onTabChanged()
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/ |
D | SlidingTabsBasicFragment.java | 49 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/HorizontalPaging/src/com.example.android.horizontalpaging/ |
D | MainActivity.java | 33 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/browseable/Flashlight/src/com.example.android.wearable.flashlight/ |
D | MainActivity.java | 37 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/training/EffectiveNavigation/src/com/example/android/effectivenavigation/ |
D | MainActivity.java | 47 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()
|
D | CollectionDemoActivity.java | 49 ViewPager mViewPager; field in CollectionDemoActivity 70 mViewPager = (ViewPager) findViewById(R.id.pager); in onCreate() 71 mViewPager.setAdapter(mDemoCollectionPagerAdapter); in onCreate()
|
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/ |
D | SlidingTabLayout.java | 77 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/ |
D | SlidingTabLayout.java | 77 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/ |
D | SlidingTabLayout.java | 77 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/ |
D | SlidingTabLayout.java | 77 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/SlidingTabsColors/src/com.example.android.common/view/ |
D | SlidingTabLayout.java | 77 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/ |
D | SlidingTabLayout.java | 77 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/SlidingTabsColors/src/com.example.android.slidingtabscolors/ |
D | SlidingTabsColorsFragment.java | 97 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/SupportDesignDemos/src/com/example/android/support/design/widget/ |
D | TabLayoutPreselectedUsage.java | 43 private ViewPager mViewPager; field in TabLayoutPreselectedUsage 57 mViewPager = (ViewPager) findViewById(R.id.tabs_viewpager); in onCreate() 65 mViewPager.setAdapter(mPagerAdapter); in onCreate() 66 mViewPager.setCurrentItem(2, false); in onCreate() 68 mTabLayout.setupWithViewPager(mViewPager); in onCreate()
|
D | TabLayoutUsage.java | 44 private ViewPager mViewPager; field in TabLayoutUsage 60 mViewPager = (ViewPager) findViewById(R.id.tabs_viewpager); in onCreate() 63 mViewPager.setAdapter(mPagerAdapter); in onCreate() 65 mTabLayout.setupWithViewPager(mViewPager); in onCreate() 77 mViewPager.setCurrentItem(0); in selectFirstTab()
|