/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/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")
|
/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 | 86 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/com/example/android/supportv4/app/ |
FragmentTabsPager.java | 131 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) { 132 tabSpec.setContent(new DummyTabFactory(mContext)); 133 String tag = tabSpec.getTag(); 137 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);
|
/packages/apps/Settings/src/com/android/settings/ |
IccLockSettings.java | 41 import android.widget.TabHost.TabSpec; 524 private TabSpec buildTabSpec(String tag, String title) {
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
SimStatus.java | 51 import android.widget.TabHost.TabSpec; 475 private TabSpec buildTabSpec(String tag, String title) {
|
/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/com/example/android/supportv7/media/ |
SampleMediaRouterActivity.java | 66 import android.widget.TabHost.TabSpec; 285 TabSpec spec1=tabHost.newTabSpec(tabName); 290 TabSpec spec2=tabHost.newTabSpec(tabName); 295 TabSpec spec3=tabHost.newTabSpec(tabName);
|
/frameworks/support/fragment/java/android/support/v4/app/ |
FragmentTabHost.java | 231 public void addTab(@NonNull TabHost.TabSpec tabSpec, @NonNull Class<?> clss, 233 tabSpec.setContent(new DummyTabFactory(mContext)); 235 final String tag = tabSpec.getTag(); 251 addTab(tabSpec);
|
/frameworks/support/v13/java/android/support/v13/app/ |
FragmentTabHost.java | 220 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) { 221 tabSpec.setContent(new DummyTabFactory(mContext)); 222 String tag = tabSpec.getTag(); 239 addTab(tabSpec);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
TwoWayBindingAdapterTest.java | 31 import android.widget.TabHost.TabSpec; 333 TabSpec tab1 = mBinder.tabhost.newTabSpec("Tab1"); 334 TabSpec tab2 = mBinder.tabhost.newTabSpec("Tab2");
|