HomeSort by relevance Sort by last modified time
    Searched refs:TabHost (Results 1 - 25 of 88) sorted by null

1 2 3 4

  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTabActivity.java 4 import android.widget.TabHost;
15 TabHost tabhost; field in class:ShadowTabActivity
17 public TabHost getTabHost() {
18 if (tabhost==null) {
19 tabhost = new TabHost(realTabActivity);
21 return tabhost;
ShadowTabSpec.java 6 import android.widget.TabHost;
7 import android.widget.TabHost.TabContentFactory;
13 @Implements(TabHost.TabSpec.class)
17 TabHost.TabSpec realObject;
63 public TabHost.TabSpec setIndicator(View view) {
69 public TabHost.TabSpec setIndicator(CharSequence label) {
75 public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon) {
91 public android.widget.TabHost.TabSpec setContent(Intent intent) {
97 public android.widget.TabHost.TabSpec setContent(TabContentFactory factory) {
104 public android.widget.TabHost.TabSpec setContent(int viewId)
    [all...]
ShadowTabHost.java 6 import android.widget.TabHost;
7 import android.widget.TabHost.TabSpec;
20 @Implements(TabHost.class)
22 private List<TabHost.TabSpec> tabSpecs = new ArrayList<TabHost.TabSpec>();
23 private TabHost.OnTabChangeListener listener;
27 TabHost realObject;
30 public android.widget.TabHost.TabSpec newTabSpec(java.lang.String tag) {
31 TabSpec realTabSpec = Robolectric.newInstanceOf(TabHost.TabSpec.class);
37 public void addTab(android.widget.TabHost.TabSpec tabSpec)
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowTabActivity.java 4 import android.widget.TabHost;
14 private TabHost tabhost; field in class:ShadowTabActivity
17 public TabHost getTabHost() {
18 if (tabhost==null) {
19 tabhost = new TabHost(realTabActivity);
21 return tabhost;
ShadowTabHost.java 9 import android.widget.TabHost;
10 import android.widget.TabHost.TabSpec;
21 @Implements(TabHost.class)
23 private List<TabHost.TabSpec> tabSpecs = new ArrayList<>();
24 private TabHost.OnTabChangeListener listener;
28 private TabHost realObject;
31 public android.widget.TabHost.TabSpec newTabSpec(java.lang.String tag) {
32 TabSpec realTabSpec = Shadow.newInstanceOf(TabHost.TabSpec.class);
38 public void addTab(android.widget.TabHost.TabSpec tabSpec) {
87 public void setOnTabChangedListener(android.widget.TabHost.OnTabChangeListener listener)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
TabHostTest.java 6 import android.widget.TabHost;
7 import android.widget.TabHost.TabContentFactory;
27 TabHost tabHost = new TabHost(null);
28 TabHost.TabSpec tabSpec = tabHost.newTabSpec("Foo");
34 TabHost tabHost = new TabHost(null)
    [all...]
TabSpecTest.java 8 import android.widget.TabHost;
9 import android.widget.TabHost.TabContentFactory;
33 TabHost.TabSpec spec = new TabHost(null).newTabSpec("foo");
35 TabHost.TabSpec self = spec.setIndicator(view);
42 TabHost.TabSpec spec = new TabHost(null).newTabSpec("foo");
44 TabHost.TabSpec self = spec.setContent(intent);
53 TabHost.TabSpec spec = new TabHost(null).newTabSpec("foo"
    [all...]
TabActivityTest.java 4 import android.widget.TabHost;
21 TabHost tabHost1 = activity.getTabHost();
22 TabHost tabHost2 = activity.getTabHost();
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTabHostTest.java 10 import android.widget.TabHost;
25 TabHost tabHost = new TabHost(RuntimeEnvironment.application);
26 TabHost.TabSpec tabSpec = tabHost.newTabSpec("Foo");
32 TabHost tabHost = new TabHost(RuntimeEnvironment.application);
35 TabHost.TabSpec foo = tabHost.newTabSpec("Foo").setIndicator(fooView)
    [all...]
ShadowTabSpecTest.java 11 import android.widget.TabHost;
31 TabHost.TabSpec spec = new TabHost(RuntimeEnvironment.application).newTabSpec("foo");
33 TabHost.TabSpec self = spec.setIndicator(view);
40 TabHost.TabSpec spec = new TabHost(RuntimeEnvironment.application).newTabSpec("foo");
42 TabHost.TabSpec self = spec.setContent(intent);
49 TabHost.TabSpec spec = new TabHost(RuntimeEnvironment.application).newTabSpec("foo")
58 TabHost.TabSpec spec = new TabHost(RuntimeEnvironment.application).newTabSpec("foo"
    [all...]
ShadowTabActivityTest.java 6 import android.widget.TabHost;
20 TabHost tabHost1 = activity.getTabHost();
21 TabHost tabHost2 = activity.getTabHost();
  /frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
TabHostBindingAdapter.java 21 import android.widget.TabHost;
22 import android.widget.TabHost.OnTabChangeListener;
27 public static int getCurrentTab(TabHost view) {
32 public static String getCurrentTabTag(TabHost view) {
37 public static void setCurrentTab(TabHost view, int tab) {
44 public static void setCurrentTabTag(TabHost view, String tabTag) {
52 public static void setListeners(TabHost view, final OnTabChangeListener listener,
  /cts/tests/app/app/src/android/app/stubs/
LaunchpadTabActivity.java 23 import android.widget.TabHost;
36 final TabHost th = getTabHost();
37 final TabHost.TabSpec ts = th.newTabSpec("1");
  /frameworks/base/core/tests/coretests/src/android/app/activity/
LaunchpadTabActivity.java 23 import android.widget.TabHost;
36 TabHost th = getTabHost();
37 TabHost.TabSpec ts = th.newTabSpec("1");
  /frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
MediaDump.java 23 import android.widget.TabHost;
39 TabHost tab = getTabHost();
42 TabHost.TabSpec videoDumpTab = tab.newTabSpec("VideoDump");
51 TabHost.TabSpec rgbPlayerTab = tab.newTabSpec("RgbPlayer");
  /cts/tests/tests/widget/src/android/widget/cts/
TabHostCtsActivity.java 22 import android.widget.TabHost;
27 * A minimal application for TabHost test.
40 TabHost tabHost = getTabHost();
43 tabHost.addTab(tabHost.newTabSpec(INITIAL_TAB_TAG)
48 private class MyTabContentFactory implements TabHost.TabContentFactory {
TabHostTest.java 41 import android.widget.TabHost;
42 import android.widget.TabHost.OnTabChangeListener;
43 import android.widget.TabHost.TabSpec;
54 * Test {@link TabHost}.
61 private static final int TAB_HOST_ID = android.R.id.tabhost;
78 new TabHost(mActivity);
80 new TabHost(mActivity, null);
85 TabHost tabHost = new TabHost(mActivity)
    [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...]
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...]
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...]
  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
FragmentTabsPager.java 22 import android.widget.TabHost;
35 * Demonstrates combining a TabHost with a ViewPager to implement a tab UI
40 TabHost mTabHost;
49 mTabHost = (TabHost)findViewById(android.R.id.tabhost);
78 * details of connecting a ViewPager with associated TabHost. It relies on a
88 implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener {
90 private final TabHost mTabHost;
106 static class DummyTabFactory implements TabHost.TabContentFactory {
122 public TabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager)
    [all...]
  /development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
TabHelperEclair.java 25 import android.widget.TabHost;
26 import android.widget.TabHost.TabSpec;
42 public class TabHelperEclair extends TabHelper implements TabHost.OnTabChangeListener {
45 private TabHost mTabHost;
57 mTabHost = (TabHost) mActivity.findViewById(android.R.id.tabhost);
140 static class DummyTabFactory implements TabHost.TabContentFactory {
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
TabsAdapter.java 26 import android.widget.TabHost;
33 * details of connecting a ViewPager with associated TabHost. It relies on a
43 implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener {
45 private final TabHost mTabHost;
60 static class DummyTabFactory implements TabHost.TabContentFactory {
76 public TabsAdapter(Activity activity, TabHost tabHost, ViewPager pager) {
78 mTabHost = tabHost;
85 public void addTab(TabHost.TabSpec tabSpec, View view) {
129 // Unfortunately when TabHost changes the current tab, it kindl
    [all...]

Completed in 478 milliseconds

1 2 3 4