/external/robolectric/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/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/src/android/app/cts/ |
LaunchpadTabActivity.java | 23 import android.widget.TabHost; 36 final TabHost th = getTabHost(); 37 final TabHost.TabSpec ts = th.newTabSpec("1");
|
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(
|
/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/src/android/widget/cts/ |
TabHostStubActivity.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 {
|
/cts/tests/tests/holo/src/android/holo/cts/modifiers/ |
TabHostModifier.java | 22 import android.widget.TabHost; 28 TabHost tabHost = (TabHost) view; 29 tabHost.setup(); 31 tabHost.addTab(tabHost.newTabSpec("1") 35 tabHost.addTab(tabHost.newTabSpec("2") 39 tabHost.addTab(tabHost.newTabSpec("3" [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...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TabHostTest.java | 29 import android.widget.TabHost; 31 import android.widget.TabHost.OnTabChangeListener; 32 import android.widget.TabHost.TabSpec; 35 * Test {@link TabHost}. 40 private static final int TAB_HOST_ID = android.R.id.tabhost; 55 new TabHost(mActivity); 57 new TabHost(mActivity, null); 61 TabHost tabHost = new TabHost(mActivity) [all...] |
TabHost_TabSpecTest.java | 36 import android.widget.TabHost; 38 import android.widget.TabHost.TabSpec; 46 private TabHost mTabHost; 201 private class MockTabContentFactoryText implements TabHost.TabContentFactory { 209 private class MockTabContentFactoryList implements TabHost.TabContentFactory {
|
/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...] |
/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; 49 private TabHost.OnTabChangeListener mOnTabChangeListener; 61 static class DummyTabFactory implements TabHost.TabContentFactory { 77 public TabsAdapter(Activity activity, TabHost tabHost, ViewPager pager) { 79 mTabHost = tabHost; 86 public void addTab(TabHost.TabSpec tabSpec, View view) [all...] |
/frameworks/base/core/java/android/app/ |
TabActivity.java | 21 import android.widget.TabHost; 32 * TabHost. You will need to define a layout that correctly uses a TabHost 55 private TabHost mTabHost; 128 mTabHost = (TabHost) findViewById(com.android.internal.R.id.tabhost); 132 "Your content must have a TabHost whose id attribute is " + 133 "'android.R.id.tabhost'"); 157 * Returns the {@link TabHost} the activity is using to host its tabs. 159 * @return the {@link TabHost} the activity is using to host its tabs [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 {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentTabsFragment.java | 30 import android.widget.TabHost; 49 TabHost host = mTabManager.handleCreateView(v); 88 public static class TabManager implements TabHost.OnTabChangeListener { 93 private TabHost mTabHost; 111 static class DummyTabFactory implements TabHost.TabContentFactory { 133 public TabHost handleCreateView(View root) { 135 throw new IllegalStateException("TabHost already set"); 137 mTabHost = (TabHost)root.findViewById(android.R.id.tabhost); 143 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
TabActivityTest.java | 28 import android.widget.TabHost; 75 final TabHost tabHost = mActivity.getTabHost(); 76 assertNotNull(tabHost); 77 assertNotNull(tabHost.getTabWidget());
|