Home
last modified time | relevance | path

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

/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelperEclair.java45 private TabHost mTabHost; field in TabHelperEclair
56 if (mTabHost == null) { in setUp()
57 mTabHost = (TabHost) mActivity.findViewById(android.R.id.tabhost); in setUp()
58 mTabHost.setup(); in setUp()
59 mTabHost.setOnTabChangedListener(this); in setUp()
69 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText(), tab.getIcon()); in addTab()
71 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText()); in addTab()
90 mTabHost.addTab(spec); in addTab()
127 outState.putString("tab", mTabHost.getCurrentTabTag()); in onSaveInstanceState()
133 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")); in onRestoreInstanceState()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentTabsFragment.java93 private TabHost mTabHost; field in FragmentTabsFragment.TabManager
134 if (mTabHost != null) { in handleCreateView()
137 mTabHost = (TabHost)root.findViewById(android.R.id.tabhost); in handleCreateView()
138 mTabHost.setup(); in handleCreateView()
139 mTabHost.setOnTabChangedListener(this); in handleCreateView()
140 return mTabHost; in handleCreateView()
148 mTabHost.addTab(tabSpec); in addTab()
155 mTabHost.setCurrentTabByTag(mCurrentTabTag); in handleViewStateRestored()
157 String currentTab = mTabHost.getCurrentTabTag(); in handleViewStateRestored()
193 mCurrentTabTag = mTabHost.getCurrentTabTag(); in handleDestroyView()
[all …]