/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");
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TabHost_TabSpecTest.java | 37 import android.widget.TabHost.TabSpec; 40 * Test {@link TabSpec}. 61 TabSpec tabSpec = mTabHost.newTabSpec(TAG_TAB2); 64 tabSpec.setIndicator(TAG_TAB2).setContent(new MockTabContentFactoryText()); 65 mTabHost.addTab(tabSpec); 73 tabSpec = mTabHost.newTabSpec("tab 3"); 74 tabSpec.setIndicator((CharSequence)null).setContent(new MockTabContentFactoryList()); 75 mTabHost.addTab(tabSpec); 84 TabSpec tabSpec = mTabHost.newTabSpec(TAG_TAB2) [all...] |
TabHostTest.java | 30 import android.widget.TabHost.TabSpec; 89 TabSpec tabSpec = tabHost.newTabSpec(TAG_TAB1); 90 tabSpec.setIndicator(TAG_TAB1); 91 tabSpec.setContent(new MyTabContentFactoryList()); 92 tabHost.addTab(tabSpec); 104 * 2. no exception occurs when uses TabSpec.setContent(android.content.Intent) after setup(). 122 TabSpec tabSpec = tabHost.newTabSpec(TAG_TAB1); 123 tabSpec.setIndicator(TAG_TAB1) [all...] |
/frameworks/base/core/java/android/widget/ |
TabHost.java | 54 private List<TabSpec> mTabSpecs = new ArrayList<TabSpec>(2); 111 * Get a new {@link TabSpec} associated with this tab host. 114 public TabSpec newTabSpec(String tag) { 115 return new TabSpec(tag); 180 * If you are using {@link TabSpec#setContent(android.content.Intent)}, this 198 * @param tabSpec Specifies how to create the indicator and content. 200 public void addTab(TabSpec tabSpec) { 202 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)}).
|
/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; 515 private TabSpec buildTabSpec(String tag, String title) {
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
SimStatus.java | 47 import android.widget.TabHost.TabSpec; 474 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; 266 TabSpec spec1 = tabHost.newTabSpec(tabName); 271 TabSpec spec2 = tabHost.newTabSpec(tabName); 276 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; 266 TabSpec spec1 = tabHost.newTabSpec(tabName); 271 TabSpec spec2 = tabHost.newTabSpec(tabName); 276 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 | 61 import android.widget.TabHost.TabSpec; 249 TabSpec spec1=tabHost.newTabSpec(tabName); 254 TabSpec spec2=tabHost.newTabSpec(tabName); 259 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);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
EmojiPalettesView.java | 150 final TabHost.TabSpec tspec = host.newTabSpec(tabId);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderSessionImpl.java | 90 import android.widget.TabHost.TabSpec; [all...] |