Home
last modified time | relevance | path

Searched refs:mTabLayout (Results 1 – 2 of 2) sorted by relevance

/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyTabActivity.java41 private TabLayout mTabLayout; field in EmergencyTabActivity
51 mTabLayout.setTabMode(TabLayout.MODE_FIXED); in onResume()
52 mTabLayout.setTabGravity(TabLayout.GRAVITY_FILL); in onResume()
70 return mTabLayout.getSelectedTabPosition(); in getSelectedTabPosition()
84 if (mTabLayout != null && selectedTabIndex >= 0 && in selectTab()
85 selectedTabIndex < mTabLayout.getTabCount()) { in selectTab()
86 mTabLayout.getTabAt(selectedTabIndex).select(); in selectTab()
92 mTabLayout = (TabLayout) findViewById(R.id.sliding_tabs); in setupTabs()
98 mTabLayout.setTabsFromPagerAdapter(mTabsAdapter); in setupTabs()
102 mTabLayout.setOnTabSelectedListener( in setupTabs()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.java77 private TabLayout mTabLayout; field in DeskClock
100 if (tab != -1 && mTabLayout != null) { in onNewIntent()
101 mTabLayout.getTabAt(tab).select(); in onNewIntent()
112 final TabLayout.Tab alarmTab = mTabLayout.newTab(); in createTabs()
116 final Tab clockTab = mTabLayout.newTab(); in createTabs()
120 final Tab timerTab = mTabLayout.newTab(); in createTabs()
124 final Tab stopwatchTab = mTabLayout.newTab(); in createTabs()
129 mTabLayout.getTabAt(mSelectedTab).select(); in createTabs()
162 mTabLayout = (TabLayout) findViewById(R.id.sliding_tabs); in onCreate()
175 mTabLayout.setOnTabSelectedListener(new ViewPagerOnTabSelectedListener(mViewPager)); in onCreate()
[all …]