HomeSort by relevance Sort by last modified time
    Searched refs:mTabHost (Results 1 - 20 of 20) sorted by null

  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
FragmentNestingTabsSupport.java 28 private FragmentTabHost mTabHost;
34 mTabHost = new FragmentTabHost(this);
35 setContentView(mTabHost);
36 mTabHost.setup(this, getSupportFragmentManager(), R.id.fragment1);
38 mTabHost.addTab(mTabHost.newTabSpec("menus").setIndicator("Menus"),
40 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"),
42 mTabHost.addTab(mTabHost.newTabSpec("stack").setIndicator("Stack")
    [all...]
FragmentTabs.java 32 private FragmentTabHost mTabHost;
39 mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost);
40 mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
42 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"),
44 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"),
46 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"),
48 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle")
    [all...]
FragmentTabsFragmentSupport.java 31 private FragmentTabHost mTabHost;
36 mTabHost = new FragmentTabHost(getActivity());
37 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.fragment1);
39 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"),
41 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"),
43 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"),
45 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle")
    [all...]
FragmentTabsPager.java 40 TabHost mTabHost;
49 mTabHost = (TabHost)findViewById(android.R.id.tabhost);
50 mTabHost.setup();
54 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager);
56 mTabsAdapter.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"),
58 mTabsAdapter.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"),
60 mTabsAdapter.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"),
62 mTabsAdapter.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"),
66 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab"));
73 outState.putString("tab", mTabHost.getCurrentTabTag())
    [all...]
  /frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
FragmentTabsFragment.java 29 private FragmentTabHost mTabHost;
34 mTabHost = new FragmentTabHost(getActivity());
35 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.pager);
37 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"),
39 mTabHost.addTab(mTabHost.newTabSpec("array").setIndicator("Array"),
41 mTabHost.addTab(mTabHost.newTabSpec("cursor").setIndicator("Cursor"),
44 return mTabHost;
    [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...]
  /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...]
  /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/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...]
  /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 102 private TabHost mTabHost;
219 mTabHost = (TabHost) view.findViewById(android.R.id.tabhost);
223 mTabHost.setup();
224 mTabHost.setOnTabChangedListener(mTabListener);
225 mTabHost.clearAllTabs();
230 mTabHost.addTab(buildTabSpec(String.valueOf(i),
241 mTabHost.setCurrentTabByTag(savedInstanceState.getString(CURRENT_TAB));
335 if (mTabHost != null) {
336 out.putString(CURRENT_TAB, mTabHost.getCurrentTabTag());
536 return new View(mTabHost.getContext())
    [all...]
TrustedCredentialsSettings.java 151 private TabHost mTabHost;
220 mTabHost = (TabHost) inflater.inflate(R.layout.trusted_credentials, parent, false);
221 mTabHost.setup();
227 mTabHost.setCurrentTabByTag(Tab.USER.mTag);
229 return mTabHost;
276 TabHost.TabSpec systemSpec = mTabHost.newTabSpec(tab.mTag)
279 mTabHost.addTab(systemSpec);
286 final ViewGroup contentView = (ViewGroup) mTabHost.findViewById(tab.mContentView);
686 View content = mTabHost.getTabContentView();
    [all...]
  /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);
  /packages/services/Telephony/src/com/android/phone/
MobileNetworkSettings.java 322 // We assume the the value returned by mTabHost.getCurrentTab() == slotId
323 private TabHost mTabHost;
571 currentTab = mTabHost != null ? mTabHost.getCurrentTab() : 0;
573 mTabHost = (TabHost) getActivity().findViewById(android.R.id.tabhost);
574 mTabHost.setup();
597 mTabHost.addTab(buildTabSpec(String.valueOf(simSlotIndex), tabName));
600 mTabHost.setOnTabChangedListener(mTabListener);
601 mTabHost.setCurrentTab(currentTab);
607 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/android-all/
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 

Completed in 542 milliseconds