Home
last modified time | relevance | path

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

/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DActionBarTabsPager.java38 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()
DFragmentNestingStatePagerSupport.java34 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()
DFragmentNestingPagerSupport.java34 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/
DFragmentTabsPager.java40 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/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()