/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentNestingTabsSupport.java | 26 private FragmentTabHost mTabHost; 32 mTabHost = new FragmentTabHost(this); 33 setContentView(mTabHost); 34 mTabHost.setup(this, getSupportFragmentManager(), R.id.fragment1); 36 mTabHost.addTab(mTabHost.newTabSpec("menus").setIndicator("Menus"), 38 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), 40 mTabHost.addTab(mTabHost.newTabSpec("stack").setIndicator("Stack") [all...] |
FragmentTabs.java | 30 private FragmentTabHost mTabHost; 37 mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost); 38 mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent); 40 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), 42 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), 44 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), 46 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle") [all...] |
FragmentTabsFragmentSupport.java | 29 private FragmentTabHost mTabHost; 34 mTabHost = new FragmentTabHost(getActivity()); 35 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.fragment1); 37 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), 39 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), 41 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), 43 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle") [all...] |
FragmentTabsPager.java | 39 TabHost mTabHost; 48 mTabHost = (TabHost)findViewById(android.R.id.tabhost); 49 mTabHost.setup(); 53 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager); 55 mTabsAdapter.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), 57 mTabsAdapter.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), 59 mTabsAdapter.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), 61 mTabsAdapter.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), 65 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")); 72 outState.putString("tab", mTabHost.getCurrentTabTag()) [all...] |
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
TabHelperEclair.java | 45 private TabHost mTabHost; 56 if (mTabHost == null) { 57 mTabHost = (TabHost) mActivity.findViewById(android.R.id.tabhost); 58 mTabHost.setup(); 59 mTabHost.setOnTabChangedListener(this); 69 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText(), tab.getIcon()); 71 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText()); 90 mTabHost.addTab(spec); 127 outState.putString("tab", mTabHost.getCurrentTabTag()); 133 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")) [all...] |
/development/samples/Support13Demos/src/com/example/android/supportv13/app/ |
FragmentTabsFragment.java | 28 private FragmentTabHost mTabHost; 33 mTabHost = new FragmentTabHost(getActivity()); 34 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.pager); 36 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), 38 mTabHost.addTab(mTabHost.newTabSpec("array").setIndicator("Array"), 40 mTabHost.addTab(mTabHost.newTabSpec("cursor").setIndicator("Cursor"), 43 return mTabHost; [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentTabsFragment.java | 93 private TabHost mTabHost; 134 if (mTabHost != null) { 137 mTabHost = (TabHost)root.findViewById(android.R.id.tabhost); 138 mTabHost.setup(); 139 mTabHost.setOnTabChangedListener(this); 140 return mTabHost; 148 mTabHost.addTab(tabSpec); 155 mTabHost.setCurrentTabByTag(mCurrentTabTag); 157 String currentTab = mTabHost.getCurrentTabTag(); 193 mCurrentTabTag = mTabHost.getCurrentTabTag() [all...] |
/frameworks/base/core/java/android/app/ |
TabActivity.java | 55 private TabHost mTabHost; 88 mTabHost.setCurrentTabByTag(cur); 90 if (mTabHost.getCurrentTab() < 0) { 92 mTabHost.setCurrentTabByTag(mDefaultTab); 94 mTabHost.setCurrentTab(mDefaultTabIndex); 105 if (mTabHost.getCurrentTab() == -1) { 106 mTabHost.setCurrentTab(0); 113 String currentTabTag = mTabHost.getCurrentTabTag(); 128 mTabHost = (TabHost) findViewById(com.android.internal.R.id.tabhost); 130 if (mTabHost == null) [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
TabsAdapter.java | 45 private final TabHost mTabHost; 79 mTabHost = tabHost; 81 mTabHost.setOnTabChangedListener(this); 92 mTabHost.addTab(tabSpec); 124 int position = mTabHost.getCurrentTab(); 142 TabWidget widget = mTabHost.getTabWidget(); 145 mTabHost.setCurrentTab(position);
|
/packages/apps/Settings/src/com/android/settings/ |
IccLockSettings.java | 102 private TabHost mTabHost; 209 mTabHost = (TabHost) findViewById(android.R.id.tabhost); 213 mTabHost.setup(); 214 mTabHost.setOnTabChangedListener(mTabListener); 215 mTabHost.clearAllTabs(); 219 mTabHost.addTab(buildTabSpec(String.valueOf(i), 489 return new View(mTabHost.getContext()); 494 return mTabHost.newTabSpec(tag).setIndicator(title).setContent(
|
TrustedCredentialsSettings.java | 165 private TabHost mTabHost; 181 mTabHost = (TabHost) inflater.inflate(R.layout.trusted_credentials, parent, false); 182 mTabHost.setup(); 188 mTabHost.setCurrentTabByTag(Tab.USER.mTag); 190 return mTabHost; 214 TabHost.TabSpec systemSpec = mTabHost.newTabSpec(tab.mTag) 217 mTabHost.addTab(systemSpec); 220 ExpandableListView lv = (ExpandableListView) mTabHost.findViewById(tab.mExpandableList); 233 ListView lv = (ListView) mTabHost.findViewById(tab.mList); 427 View content = mTabHost.getTabContentView() [all...] |
DataUsageSummary.java | 211 private TabHost mTabHost; 347 mTabHost = (TabHost) view.findViewById(android.R.id.tabhost); 361 mTabHost.setup(); 362 mTabHost.setOnTabChangedListener(mTabListener); 671 mTabHost.clearAllTabs(); 683 mTabHost.addTab(buildTabSpec(TAB_WIFI, R.string.data_usage_tab_wifi)); 687 mTabHost.addTab(buildTabSpec(TAB_ETHERNET, R.string.data_usage_tab_ethernet)); 694 if (Objects.equal(mIntentTab, mTabHost.getCurrentTabTag())) { 698 mTabHost.setCurrentTabByTag(mIntentTab); 715 return new View(mTabHost.getContext()) [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
SimStatus.java | 109 private TabHost mTabHost; 160 mTabHost = (TabHost) findViewById(android.R.id.tabhost); 164 mTabHost.setup(); 165 mTabHost.setOnTabChangedListener(mTabListener); 166 mTabHost.clearAllTabs(); 169 mTabHost.addTab(buildTabSpec(String.valueOf(i), 415 return new View(mTabHost.getContext()); 420 return mTabHost.newTabSpec(tag).setIndicator(title).setContent(
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
EmojiPalettesView.java | 88 private TabHost mTabHost; 165 mTabHost = (TabHost)findViewById(R.id.emoji_category_tabhost); 166 mTabHost.setup(); 169 addTab(mTabHost, properties.mCategoryId); 171 mTabHost.setOnTabChangedListener(this); 172 final TabWidget tabWidget = mTabHost.getTabWidget(); 433 if (force || mTabHost.getCurrentTab() != newTabId) { 434 mTabHost.setCurrentTab(newTabId);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TabHost_TabSpecTest.java | 45 private TabHost mTabHost; 56 mTabHost = mActivity.getTabHost(); 61 TabSpec tabSpec = mTabHost.newTabSpec(TAG_TAB2); 65 mTabHost.addTab(tabSpec); 66 mTabHost.setCurrentTab(1); 67 View currentTabView = mTabHost.getCurrentTabView(); 73 tabSpec = mTabHost.newTabSpec("tab 3"); 75 mTabHost.addTab(tabSpec); 76 mTabHost.setCurrentTab(2); 77 currentTabView = mTabHost.getCurrentTabView() [all...] |
/packages/services/Telephony/src/com/android/phone/ |
MobileNetworkSettings.java | 128 // We assume the the value returned by mTabHost.getCurrentTab() == slotId 129 private TabHost mTabHost; 293 currentTab = mTabHost != null ? mTabHost.getCurrentTab() : 0; 297 mTabHost = (TabHost) findViewById(android.R.id.tabhost); 298 mTabHost.setup(); 320 mTabHost.addTab(buildTabSpec(String.valueOf(simSlotIndex), tabName)); 323 mTabHost.setOnTabChangedListener(mTabListener); 324 mTabHost.setCurrentTab(currentTab); 330 if (mTabHost != null) [all...] |