/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();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TabHostTest.java | 28 import android.widget.TabHost; 29 import android.widget.TabHost.OnTabChangeListener; 30 import android.widget.TabHost.TabSpec; 36 * Test {@link TabHost}. 42 private static final int TAB_HOST_ID = android.R.id.tabhost; 57 new TabHost(mActivity); 59 new TabHost(mActivity, null); 63 TabHost tabHost = new TabHost(mActivity) [all...] |
TabHostCtsActivity.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 {
|
/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;
|
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...] |
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...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
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...] |
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...] |
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...] |
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)
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/ |
completion1-expected-completion10.txt | 2 TabHost
|
/cts/tests/app/app/src/android/app/stubs/ |
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(
|
LaunchpadTabActivity.java | 23 import android.widget.TabHost; 36 final TabHost th = getTabHost(); 37 final TabHost.TabSpec ts = th.newTabSpec("1");
|
/frameworks/base/media/tests/MediaDump/res/layout/ |
main.xml | 2 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 3 android:id="@android:id/tabhost" 21 </TabHost>
|
/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,
|
/external/robolectric/v1/src/test/resources/res/layout/ |
tab_activity.xml | 6 <TabHost 7 android:id="@android:id/tabhost" 25 </TabHost>
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentTabsPager.java | 28 import android.widget.TabHost; 34 * Demonstrates combining a TabHost with a ViewPager to implement a tab UI 39 TabHost mTabHost; 48 mTabHost = (TabHost)findViewById(android.R.id.tabhost); 77 * details of connecting a ViewPager with associated TabHost. It relies on a 87 implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener { 89 private final TabHost mTabHost; 105 static class DummyTabFactory implements TabHost.TabContentFactory { 121 public TabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) [all...] |
/frameworks/base/core/res/res/layout/ |
common_tab_settings.xml | 17 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@android:id/tabhost" 43 <!-- give an empty content area to make tabhost happy --> 60 </TabHost>
|
/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");
|
/packages/apps/Settings/res/layout/ |
data_usage_summary.xml | 17 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@android:id/tabhost" 36 <!-- give an empty content area to make tabhost happy --> 55 </TabHost>
|
icc_lock_tabs.xml | 17 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@android:id/tabhost" 43 <!-- give an empty content area to make tabhost happy --> 60 </TabHost>
|
/development/samples/ApiDemos/res/layout/ |
fragment_tabs_fragment.xml | 19 <TabHost 21 android:id="@android:id/tabhost" 50 </TabHost>
|