Home
last modified time | relevance | path

Searched refs:mTabsAdapter (Results 1 – 3 of 3) sorted by relevance

/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyTabActivity.java40 private ViewPagerAdapter mTabsAdapter; field in EmergencyTabActivity
93 if (mTabsAdapter == null) { in setupTabs()
96 mTabsAdapter = new ViewPagerAdapter(getFragmentManager()); in setupTabs()
97 viewPager.setAdapter(mTabsAdapter); in setupTabs()
98 mTabLayout.setTabsFromPagerAdapter(mTabsAdapter); in setupTabs()
109 mTabsAdapter.notifyDataSetChanged(); in setupTabs()
110 mTabLayout.setTabsFromPagerAdapter(mTabsAdapter); in setupTabs()
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.java83 private TabsAdapter mTabsAdapter; field in DeskClock
108 return (DeskClockFragment) mTabsAdapter.getItem(mSelectedTab); in getSelectedFragment()
114 mTabsAdapter.addTab(alarmTab, AlarmClockFragment.class, ALARM_TAB_INDEX); in createTabs()
118 mTabsAdapter.addTab(clockTab, ClockFragment.class, CLOCK_TAB_INDEX); in createTabs()
122 mTabsAdapter.addTab(timerTab, TimerFragment.class, TIMER_TAB_INDEX); in createTabs()
127 mTabsAdapter.addTab(stopwatchTab, StopwatchFragment.class, STOPWATCH_TAB_INDEX); in createTabs()
131 mTabsAdapter.notifySelectedPage(mSelectedTab); in createTabs()
166 if (mTabsAdapter == null) { in onCreate()
173 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate()
280 if (mTabsAdapter != null) { in registerPageChangedListener()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DGalleryActivity.java40 private TabsAdapter mTabsAdapter; field in GalleryActivity
55 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate()
56 mTabsAdapter.addTab(ab.newTab().setText(R.string.tab_photos), in onCreate()
58 mTabsAdapter.addTab(ab.newTab().setText(R.string.tab_albums), in onCreate()