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

1 2

  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTabSpec.java 13 @Implements(TabHost.TabSpec.class)
17 TabHost.TabSpec realObject;
27 * Non-Android accessor, sets the tag on the TabSpec
41 * @return the view object set in a call to {@code TabSpec#setIndicator(View)}
63 public TabHost.TabSpec setIndicator(View view) {
69 public TabHost.TabSpec setIndicator(CharSequence label) {
75 public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon) {
84 * @return the intent object set in a call to {@code TabSpec#setContent(Intent)}
91 public android.widget.TabHost.TabSpec setContent(Intent intent) {
97 public android.widget.TabHost.TabSpec setContent(TabContentFactory factory)
    [all...]
ShadowTabHost.java 7 import android.widget.TabHost.TabSpec;
22 private List<TabHost.TabSpec> tabSpecs = new ArrayList<TabHost.TabSpec>();
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) {
38 tabSpecs.add(tabSpec);
39 View indicatorAsView = shadowOf(tabSpec).getIndicatorAsView()
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowTabHost.java 10 import android.widget.TabHost.TabSpec;
23 private List<TabHost.TabSpec> tabSpecs = new ArrayList<>();
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) {
39 tabSpecs.add(tabSpec);
40 View indicatorAsView = Shadows.shadowOf(tabSpec).getIndicatorAsView();
57 TabSpec tabSpec = tabSpecs.get(x)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
TabHostTest.java 28 TabHost.TabSpec tabSpec = tabHost.newTabSpec("Foo");
29 assertThat(tabSpec.getTag(), equalTo("Foo"));
37 TabHost.TabSpec foo = tabHost.newTabSpec("Foo").setIndicator(fooView);
40 TabHost.TabSpec bar = tabHost.newTabSpec("Bar").setIndicator(barView);
52 TabHost.TabSpec foo = tabHost.newTabSpec("Foo");
53 TabHost.TabSpec bar = tabHost.newTabSpec("Bar");
54 TabHost.TabSpec baz = tabHost.newTabSpec("Baz");
69 TabHost.TabSpec foo = tabHost.newTabSpec("Foo");
70 TabHost.TabSpec bar = tabHost.newTabSpec("Bar")
    [all...]
TabSpecTest.java 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")
61 TabHost.TabSpec spec = new TabHost(null).newTabSpec("foo")
71 TabHost.TabSpec foo = new TabHost(null).newTabSpec("Foo").setContent(
89 TabHost.TabSpec foo = new TabHost(null).newTabSpec("Foo")
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTabHostTest.java 26 TabHost.TabSpec tabSpec = tabHost.newTabSpec("Foo");
27 assertThat(tabSpec.getTag()).isEqualTo("Foo");
35 TabHost.TabSpec foo = tabHost.newTabSpec("Foo").setIndicator(fooView);
38 TabHost.TabSpec bar = tabHost.newTabSpec("Bar").setIndicator(barView);
50 TabHost.TabSpec foo = tabHost.newTabSpec("Foo");
51 TabHost.TabSpec bar = tabHost.newTabSpec("Bar");
52 TabHost.TabSpec baz = tabHost.newTabSpec("Baz");
67 TabHost.TabSpec foo = tabHost.newTabSpec("Foo");
68 TabHost.TabSpec bar = tabHost.newTabSpec("Bar")
    [all...]
ShadowTabSpecTest.java 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")
68 TabHost.TabSpec foo = new TabHost(RuntimeEnvironment.application).newTabSpec("Foo").setContent(
84 TabHost.TabSpec foo = new TabHost(RuntimeEnvironment.application).newTabSpec("Foo")
  /frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
MediaDump.java 42 TabHost.TabSpec videoDumpTab = tab.newTabSpec("VideoDump");
51 TabHost.TabSpec rgbPlayerTab = tab.newTabSpec("RgbPlayer");
  /cts/tests/app/app/src/android/app/stubs/
LaunchpadTabActivity.java 37 final TabHost.TabSpec ts = th.newTabSpec("1");
  /frameworks/base/core/tests/coretests/src/android/app/activity/
LaunchpadTabActivity.java 37 TabHost.TabSpec ts = th.newTabSpec("1");
  /frameworks/base/core/java/android/widget/
TabHost.java 57 private List<TabSpec> mTabSpecs = new ArrayList<TabSpec>(2);
114 * Creates a new {@link TabSpec} associated with this tab host.
120 public TabSpec newTabSpec(@NonNull String tag) {
124 return new TabSpec(tag);
194 * If you are using {@link TabSpec#setContent(android.content.Intent)}, this
212 * @param tabSpec Specifies how to create the indicator and content.
216 public void addTab(TabSpec tabSpec) {
218 if (tabSpec.mIndicatorStrategy == null)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
Tabs1.java 22 import android.widget.TabHost.TabSpec;
28 * An example of tabs that uses labels ({@link TabSpec#setIndicator(CharSequence)})
29 * for its indicators and views by id from a layout file ({@link TabSpec#setContent(int)}).
  /cts/tests/tests/widget/src/android/widget/cts/
TabHost_TabSpecTest.java 50 * Test {@link TabHost.TabSpec}.
73 TabHost.TabSpec tabSpec = mTabHost.newTabSpec(TAG_TAB2);
76 tabSpec.setIndicator(TAG_TAB2).setContent(new MockTabContentFactoryText());
77 mTabHost.addTab(tabSpec);
85 tabSpec = mTabHost.newTabSpec("tab 3");
86 tabSpec.setIndicator((CharSequence)null).setContent(new MockTabContentFactoryList());
87 mTabHost.addTab(tabSpec);
97 TabHost.TabSpec tabSpec = mTabHost.newTabSpec(TAG_TAB2)
    [all...]
TabHostTest.java 43 import android.widget.TabHost.TabSpec;
120 TabSpec tabSpec = tabHost.newTabSpec(TAG_TAB1);
121 tabSpec.setIndicator(TAG_TAB1);
122 tabSpec.setContent(new MyTabContentFactoryList());
123 tabHost.addTab(tabSpec);
134 * 2. no exception occurs when uses TabSpec.setContent(android.content.Intent) after setup().
155 TabSpec tabSpec = tabHost.newTabSpec(TAG_TAB1);
156 tabSpec.setIndicator(TAG_TAB1)
    [all...]
PointerIconTest.java 88 private TabHost.TabSpec createTabSpec(TabHost tabHost, String label, PointerIcon pointerIcon) {
  /development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
TabHelperEclair.java 26 import android.widget.TabHost.TabSpec;
66 TabSpec spec;
  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
FragmentTabsPager.java 132 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) {
133 tabSpec.setContent(new DummyTabFactory(mContext));
134 String tag = tabSpec.getTag();
138 mTabHost.addTab(tabSpec);
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
TabsAdapter.java 85 public void addTab(TabHost.TabSpec tabSpec, View view) {
86 tabSpec.setContent(new DummyTabFactory(mContext));
87 String tag = tabSpec.getTag();
91 mTabHost.addTab(tabSpec);
  /developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
MainActivity.java 60 import android.widget.TabHost.TabSpec;
267 TabSpec spec1 = tabHost.newTabSpec(tabName);
272 TabSpec spec2 = tabHost.newTabSpec(tabName);
277 TabSpec spec3 = tabHost.newTabSpec(tabName);
  /developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
MainActivity.java 60 import android.widget.TabHost.TabSpec;
267 TabSpec spec1 = tabHost.newTabSpec(tabName);
272 TabSpec spec2 = tabHost.newTabSpec(tabName);
277 TabSpec spec3 = tabHost.newTabSpec(tabName);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
FragmentTabsFragment.java 143 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) {
144 tabSpec.setContent(new DummyTabFactory(mContext));
145 String tag = tabSpec.getTag();
148 mTabHost.addTab(tabSpec);
  /development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
MainActivity.java 60 import android.widget.TabHost.TabSpec;
266 TabSpec spec1 = tabHost.newTabSpec(tabName);
271 TabSpec spec2 = tabHost.newTabSpec(tabName);
276 TabSpec spec3 = tabHost.newTabSpec(tabName);
  /frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
SampleMediaRouterActivity.java 51 import android.widget.TabHost.TabSpec;
286 TabSpec spec1=tabHost.newTabSpec(tabName);
291 TabSpec spec2=tabHost.newTabSpec(tabName);
296 TabSpec spec3=tabHost.newTabSpec(tabName);
  /packages/apps/Settings/src/com/android/settings/
IccLockSettings.java 43 import android.widget.TabHost.TabSpec;
540 private TabSpec buildTabSpec(String tag, String title) {
  /frameworks/support/fragment/src/main/java/androidx/fragment/app/
FragmentTabHost.java 232 public void addTab(@NonNull TabHost.TabSpec tabSpec, @NonNull Class<?> clss,
234 tabSpec.setContent(new DummyTabFactory(mContext));
236 final String tag = tabSpec.getTag();
252 addTab(tabSpec);

Completed in 913 milliseconds

1 2