/frameworks/support/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...] |
/frameworks/support/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 | 38 private TabHost mTabHost; 71 mTabHost.setCurrentTabByTag(cur); 73 if (mTabHost.getCurrentTab() < 0) { 75 mTabHost.setCurrentTabByTag(mDefaultTab); 77 mTabHost.setCurrentTab(mDefaultTabIndex); 88 if (mTabHost.getCurrentTab() == -1) { 89 mTabHost.setCurrentTab(0); 96 String currentTabTag = mTabHost.getCurrentTabTag(); 111 mTabHost = findViewById(com.android.internal.R.id.tabhost); 113 if (mTabHost == null) [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
TabsAdapter.java | 45 private final TabHost mTabHost; 78 mTabHost = tabHost; 80 mTabHost.setOnTabChangedListener(this); 91 mTabHost.addTab(tabSpec); 119 int position = mTabHost.getCurrentTab(); 134 TabWidget widget = mTabHost.getTabWidget(); 137 mTabHost.setCurrentTab(position);
|
/packages/apps/Settings/src/com/android/settings/ |
IccLockSettings.java | 99 private TabHost mTabHost; 216 mTabHost = (TabHost) view.findViewById(android.R.id.tabhost); 220 mTabHost.setup(); 221 mTabHost.setOnTabChangedListener(mTabListener); 222 mTabHost.clearAllTabs(); 227 mTabHost.addTab(buildTabSpec(String.valueOf(i), 511 return new View(mTabHost.getContext()); 516 return mTabHost.newTabSpec(tag).setIndicator(title).setContent(
|
TrustedCredentialsSettings.java | 148 private TabHost mTabHost; 213 mTabHost = (TabHost) inflater.inflate(R.layout.trusted_credentials, parent, false); 214 mTabHost.setup(); 220 mTabHost.setCurrentTabByTag(Tab.USER.mTag); 222 return mTabHost; 267 TabHost.TabSpec systemSpec = mTabHost.newTabSpec(tab.mTag) 270 mTabHost.addTab(systemSpec); 277 final ViewGroup contentView = (ViewGroup) mTabHost.findViewById(tab.mContentView); 677 View content = mTabHost.getTabContentView(); [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
SimStatus.java | 115 private TabHost mTabHost; 173 mTabHost = (TabHost) view.findViewById(android.R.id.tabhost); 177 mTabHost.setup(); 178 mTabHost.setOnTabChangedListener(mTabListener); 179 mTabHost.clearAllTabs(); 182 mTabHost.addTab(buildTabSpec(String.valueOf(i), 476 return new View(mTabHost.getContext()); 481 return mTabHost.newTabSpec(tag).setIndicator(title).setContent(
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
EmojiPalettesView.java | 85 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(); 434 if (force || mTabHost.getCurrentTab() != newTabId) { 435 mTabHost.setCurrentTab(newTabId);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TabHost_TabSpecTest.java | 58 private TabHost mTabHost; 67 mTabHost = mActivity.getTabHost(); 73 TabHost.TabSpec tabSpec = mTabHost.newTabSpec(TAG_TAB2); 77 mTabHost.addTab(tabSpec); 78 mTabHost.setCurrentTab(1); 79 View currentTabView = mTabHost.getCurrentTabView(); 85 tabSpec = mTabHost.newTabSpec("tab 3"); 87 mTabHost.addTab(tabSpec); 88 mTabHost.setCurrentTab(2); 89 currentTabView = mTabHost.getCurrentTabView() [all...] |
/packages/services/Telephony/src/com/android/phone/ |
MobileNetworkSettings.java | 162 // We assume the the value returned by mTabHost.getCurrentTab() == slotId 163 private TabHost mTabHost; 316 currentTab = mTabHost != null ? mTabHost.getCurrentTab() : 0; 320 mTabHost = (TabHost) getActivity().findViewById(android.R.id.tabhost); 321 mTabHost.setup(); 344 mTabHost.addTab(buildTabSpec(String.valueOf(simSlotIndex), tabName)); 347 mTabHost.setOnTabChangedListener(mTabListener); 348 mTabHost.setCurrentTab(currentTab); 354 if (mTabHost != null) [all...] |
/external/robolectric/v3/runtime/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
android-all-4.3_r2-robolectric-0.jar | |
/prebuilts/misc/common/robolectric/lib/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
android-all-4.3_r2-robolectric-0.jar | |