HomeSort by relevance Sort by last modified time
    Searched defs:tabHost (Results 1 - 14 of 14) sorted by null

  /cts/tests/src/android/theme/cts/
TabHostModifier.java 22 import android.widget.TabHost;
25 * Modifies {@link TabHost} widget for use in testing.
31 TabHost tabHost = (TabHost) view;
32 tabHost.setup();
33 TabHost.TabSpec spec; // Reusable TabSpec for each tab
35 // Initialize a TabSpec for each tab and add it to the TabHost
36 spec = tabHost.newTabSpec("artists").setIndicator("Artists").setContent(R.id.tabInnerView);
37 tabHost.addTab(spec)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
Tabs1.java 21 import android.widget.TabHost;
22 import android.widget.TabHost.TabSpec;
36 TabHost tabHost = getTabHost();
38 LayoutInflater.from(this).inflate(R.layout.tabs1, tabHost.getTabContentView(), true);
40 tabHost.addTab(tabHost.newTabSpec("tab1")
43 tabHost.addTab(tabHost.newTabSpec("tab3")
46 tabHost.addTab(tabHost.newTabSpec("tab3"
    [all...]
Tabs3.java 21 import android.widget.TabHost;
25 * An example of tab content that launches an activity via {@link android.widget.TabHost.TabSpec#setContent(android.content.Intent)}
33 final TabHost tabHost = getTabHost();
35 tabHost.addTab(tabHost.newTabSpec("tab1")
39 tabHost.addTab(tabHost.newTabSpec("tab2")
45 tabHost.addTab(tabHost.newTabSpec("tab3"
    [all...]
Tabs2.java 24 import android.widget.TabHost;
28 * Example of using a tab content factory for the content via {@link TabHost.TabSpec#setContent(android.widget.TabHost.TabContentFactory)}
30 * It also demonstrates using an icon on one of the tabs via {@link TabHost.TabSpec#setIndicator(CharSequence, android.graphics.drawable.Drawable)}
33 public class Tabs2 extends TabActivity implements TabHost.TabContentFactory {
39 final TabHost tabHost = getTabHost();
40 tabHost.addTab(tabHost.newTabSpec("tab1")
43 tabHost.addTab(tabHost.newTabSpec("tab2"
    [all...]
Tabs5.java 24 import android.widget.TabHost;
30 public class Tabs5 extends TabActivity implements TabHost.TabContentFactory {
38 final TabHost tabHost = getTabHost();
42 tabHost.addTab(tabHost.newTabSpec(name)
Tabs6.java 24 import android.widget.TabHost;
30 public class Tabs6 extends TabActivity implements TabHost.TabContentFactory {
38 final TabHost tabHost = getTabHost();
39 tabHost.addTab(tabHost.newTabSpec("tab1")
42 tabHost.addTab(tabHost.newTabSpec("tab2")
45 tabHost.addTab(tabHost.newTabSpec("tab3"
    [all...]
  /cts/tests/src/android/widget/cts/
TabHostStubActivity.java 22 import android.widget.TabHost;
28 * A minimal application for TabHost test.
41 TabHost tabHost = getTabHost();
44 tabHost.addTab(tabHost.newTabSpec(INITIAL_TAB_TAG)
49 private class MyTabContentFactory implements TabHost.TabContentFactory {
  /cts/tests/tests/app/src/android/app/cts/
TabActivityTest.java 33 import android.widget.TabHost;
131 final TabHost tabHost = mActivity.getTabHost();
132 assertNotNull(tabHost);
133 assertNotNull(tabHost.getTabWidget());
  /cts/tests/tests/widget/src/android/widget/cts/
TabHostTest.java 34 import android.widget.TabHost;
36 import android.widget.TabHost.OnTabChangeListener;
37 import android.widget.TabHost.TabSpec;
40 * Test {@link TabHost}.
42 @TestTargetClass(TabHost.class)
46 private static final int TAB_HOST_ID = android.R.id.tabhost;
63 method = "TabHost",
68 method = "TabHost",
73 new TabHost(mActivity);
75 new TabHost(mActivity, null)
    [all...]
  /cts/tests/src/android/app/cts/
MockTabActivity.java 23 import android.widget.TabHost;
40 final TabHost tabHost = getTabHost();
42 tabHost.addTab(tabHost.newTabSpec(TAB1).setIndicator(TAB1)
45 tabHost.addTab(tabHost.newTabSpec(TAB2).setIndicator(TAB2)
48 tabHost.addTab(tabHost.newTabSpec(TAB3).setIndicator(TAB3).setContent(
  /packages/apps/Launcher2/src/com/android/launcher2/
FocusHelper.java 24 import android.widget.TabHost;
74 * Private helper to get the parent TabHost in the view hiearchy.
76 private static TabHost findTabHostParent(View v) {
78 while (p != null && !(p instanceof TabHost)) {
81 return (TabHost) p;
88 final TabHost tabHost = findTabHostParent(v);
90 tabHost.findViewById(com.android.internal.R.id.tabcontent);
91 final View shop = tabHost.findViewById(R.id.market_button);
147 final TabHost tabHost = findTabHostParent(container)
    [all...]
AppsCustomizePagedView.java 657 AppsCustomizeTabHost tabHost = getTabHost();
658 String tag = tabHost.getCurrentTabTag();
661 !tag.equals(tabHost.getTabTagForContentType(ContentType.Widgets))) {
662 tabHost.setCurrentTabFromContent(ContentType.Widgets);
664 !tag.equals(tabHost.getTabTagForContentType(ContentType.Applications))) {
665 tabHost.setCurrentTabFromContent(ContentType.Applications);
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
ManageApplications.java 54 import android.widget.TabHost;
116 TabHost.TabContentFactory, TabHost.OnTabChangeListener {
197 private TabHost mTabHost;
624 mTabHost = (TabHost) mInflater.inflate(R.layout.manage_apps_tab_content, container, false);
626 final TabHost tabHost = mTabHost;
627 tabHost.addTab(tabHost.newTabSpec(TAB_DOWNLOADED)
632 tabHost.addTab(tabHost.newTabSpec(TAB_SDCARD
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderSessionImpl.java 84 import android.widget.TabHost;
86 import android.widget.TabHost.TabSpec;
331 // post-inflate process. For now this supports TabHost/TabWidget
    [all...]

Completed in 170 milliseconds