/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/app/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/tests/widget/src/android/widget/cts/ |
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 {
|
TabHostTest.java | 30 import android.widget.TabHost; 32 import android.widget.TabHost.OnTabChangeListener; 33 import android.widget.TabHost.TabSpec; 36 * Test {@link TabHost}. 41 private static final int TAB_HOST_ID = android.R.id.tabhost; 56 new TabHost(mActivity); 58 new TabHost(mActivity, null); 62 TabHost tabHost = new TabHost(mActivity) [all...] |
TabHost_TabSpecTest.java | 35 import android.widget.TabHost; 37 import android.widget.TabHost.TabSpec; 45 private TabHost mTabHost; 200 private class MockTabContentFactoryText implements TabHost.TabContentFactory { 208 private class MockTabContentFactoryList implements TabHost.TabContentFactory {
|
/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...] |
/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...] |
/frameworks/support/v13/java/android/support/v13/app/ |
FragmentTabHost.java | 34 import android.widget.TabHost; 42 public class FragmentTabHost extends TabHost 43 implements TabHost.OnTabChangeListener { 49 private TabHost.OnTabChangeListener mOnTabChangeListener; 66 static class DummyTabFactory implements TabHost.TabContentFactory { 169 * @deprecated Don't call the original TabHost setup, you must instead 199 setId(android.R.id.tabhost); 218 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) {
|
/frameworks/support/v4/java/android/support/v4/app/ |
FragmentTabHost.java | 31 import android.widget.TabHost; 35 * Special TabHost that allows the use of {@link Fragment} objects for 50 public class FragmentTabHost extends TabHost 51 implements TabHost.OnTabChangeListener { 57 private TabHost.OnTabChangeListener mOnTabChangeListener; 74 static class DummyTabFactory implements TabHost.TabContentFactory { 177 * @deprecated Don't call the original TabHost setup, you must instead 207 setId(android.R.id.tabhost); 226 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) {
|