HomeSort by relevance Sort by last modified time
    Searched full:tabhost (Results 1 - 25 of 61) sorted by null

1 2 3

  /cts/tests/tests/widget/src/android/widget/cts/
TabHostTest.java 34 import android.widget.TabHost;
36 import android.widget.TabHost.OnTabChangeListener;
37 import android.widget.TabHost.TabSpec;
40 * Test {@link TabHost}.
42 @TestTargetClass(TabHost.class)
46 private static final int TAB_HOST_ID = android.R.id.tabhost;
63 method = "TabHost",
68 method = "TabHost",
73 new TabHost(mActivity);
75 new TabHost(mActivity, null)
    [all...]
TabHost_TabSpecTest.java 39 import android.widget.TabHost;
41 import android.widget.TabHost.TabSpec;
50 private TabHost mTabHost;
168 args = {android.widget.TabHost.TabContentFactory.class}
219 private class MockTabContentFactoryText implements TabHost.TabContentFactory {
227 private class MockTabContentFactoryList implements TabHost.TabContentFactory {
  /development/samples/ApiDemos/src/com/example/android/apis/view/
Tabs2.java 21 import android.widget.TabHost;
27 * Example of using a tab content factory for the content via {@link TabHost.TabSpec#setContent(android.widget.TabHost.TabContentFactory)}
29 * It also demonstrates using an icon on one of the tabs via {@link TabHost.TabSpec#setIndicator(CharSequence, android.graphics.drawable.Drawable)}
32 public class Tabs2 extends TabActivity implements TabHost.TabContentFactory {
38 final TabHost tabHost = getTabHost();
39 tabHost.addTab(tabHost.newTabSpec("tab1")
42 tabHost.addTab(tabHost.newTabSpec("tab2"
    [all...]
Tabs1.java 21 import android.widget.TabHost;
22 import android.widget.TabHost.TabSpec;
37 TabHost tabHost = getTabHost();
39 LayoutInflater.from(this).inflate(R.layout.tabs1, tabHost.getTabContentView(), true);
41 tabHost.addTab(tabHost.newTabSpec("tab1")
44 tabHost.addTab(tabHost.newTabSpec("tab3")
47 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/src/android/app/cts/
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");
  /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 {
  /frameworks/base/core/java/android/app/
TabActivity.java 21 import android.widget.TabHost;
29 private TabHost mTabHost;
102 mTabHost = (TabHost) findViewById(com.android.internal.R.id.tabhost);
106 "Your content must have a TabHost whose id attribute is " +
107 "'android.R.id.tabhost'");
131 * Returns the {@link TabHost} the activity is using to host its tabs.
133 * @return the {@link TabHost} the activity is using to host its tabs.
135 public TabHost getTabHost() {
  /frameworks/base/docs/html/resources/tutorials/views/
hello-tabwidget.jd 6 <p>To create a tabbed UI, you need to use a {@link android.widget.TabHost} and a {@link
7 android.widget.TabWidget}. The {@link android.widget.TabHost} must be the root node for the layout,
82 &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
83 android:id="@android:id/tabhost"
101 &lt;/TabHost>
105 <p>The {@link android.widget.TabHost} requires that a {@link android.widget.TabWidget} and a
109 for each tab goes, which is empty now because the {@link android.widget.TabHost} will automatically
113 must be used so that the {@link android.widget.TabHost} can retrieve references to each of
131 TabHost tabHost = getTabHost(); // The activity TabHos
    [all...]
  /frameworks/base/core/res/res/layout/
tab_content.xml 21 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost"
31 </TabHost>
  /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");
  /packages/apps/Browser/res/layout/
tabs.xml 16 <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
17 android:id="@android:id/tabhost"
37 </TabHost>
  /packages/apps/Contacts/res/layout-finger/
dialer_activity.xml 17 <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@android:id/tabhost"
38 </TabHost>
  /packages/apps/Phone/res/layout-finger/
dialer_activity.xml 17 <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@android:id/tabhost"
41 </TabHost>
  /packages/apps/Tag/res/layout/
main.xml 18 <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@android:id/tabhost"
38 </TabHost>
  /packages/apps/Tag/src/com/android/apps/tag/
TagBrowserActivity.java 33 import android.widget.TabHost;
50 TabHost tabHost = getTabHost();
52 tabHost.addTab(tabHost.newTabSpec("tags")
57 tabHost.addTab(tabHost.newTabSpec("starred")
  /cts/tests/res/layout/
tabhost_layout.xml 17 <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@android:id/tabhost"
45 </TabHost>
  /frameworks/base/docs/html/guide/tutorials/views/
hello-tabwidget.jd 14 &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
15 android:id="@android:id/tabhost"
47 &lt;/TabHost>
49 <p>Here, we've created a {@link android.widget.TabHost} that contains the entire layout of the Activity.
50 A TabHost requires two descendant elements: a {@link android.widget.TabWidget} and a {@link android.widget.FrameLayout}.
56 so that the TabHost can automatically retrieve references to them, populate the TabWidget with the tabs that we'll define
87 which returns us a reference to the TabHost we created in our layout. Upon our TabHost, we call <code>addTab()</code>
89 {@link android.widget.TabHost.TabSpec} that we build on the fly, and with it, chain together two necessary methods:
120 <li>{@link android.widget.TabHost}</li
    [all...]
  /packages/apps/Browser/src/com/android/browser/
CombinedBookmarkHistoryActivity.java 29 import android.widget.TabHost;
35 implements TabHost.OnTabChangeListener {
149 TabHost tabHost = getTabHost();
150 tabHost.addTab(tabHost.newTabSpec(tab).setIndicator(
  /frameworks/base/docs/html/sdk/api_diff/4/changes/
android.widget.TabHost.TabSpec.html 10 android.widget.TabHost.TabSpec
74 Class android.widget.<A HREF="../../../../reference/android/widget/TabHost.TabSpec.html" target="_top"><font size="+2"><code>TabHost.TabSpec</code></font></A>
86 <A NAME="android.widget.TabHost.TabSpec.getTag_added()"></A>
87 <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/widget/TabHost.TabSpec.html#getTag()" target="_top"><code>getTag</code></A>()</nobr>
93 <A NAME="android.widget.TabHost.TabSpec.setIndicator_added(android.view.View)"></A>
94 <nobr><code>TabSpec</code>&nbsp;<A HREF="../../../../reference/android/widget/TabHost.TabSpec.html#setIndicator(android.view.View)" target="_top"><code>setIndicator</code></A>(<code>View</code>)</nobr>
  /cts/tests/tests/app/src/android/app/cts/
TabActivityTest.java 34 import android.widget.TabHost;
132 final TabHost tabHost = mActivity.getTabHost();
133 assertNotNull(tabHost);
134 assertNotNull(tabHost.getTabWidget());
  /frameworks/base/core/java/android/widget/
TabHost.java 47 public class TabHost extends FrameLayout implements ViewTreeObserver.OnTouchModeChangeListener {
66 public TabHost(Context context) {
71 public TabHost(Context context, AttributeSet attrs) {
95 * <p>Call setup() before adding tabs if loading TabHost using findViewById().
99 <pre>mTabHost = (TabHost)findViewById(R.id.tabhost);
107 "Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'");
142 "Your TabHost must have a FrameLayout whose id attribute is "
319 final TabHost.TabSpec spec = mTabSpecs.get(index);
446 * Specify a {@link android.widget.TabHost.TabContentFactory} to use t
    [all...]
TabWidget.java 36 * {@link android.widget.TabHost TabHost}. When the user selects a tab, this
37 * object sends a message to the parent container, TabHost, to tell it to switch
39 * object. The container TabHost is used to add labels, add the callback
42 * called on the containing TabHost object.
246 * view for the tab indicators, then the TabHost class calls this method
420 * Provides a way for {@link TabHost} to be notified that the user clicked on a tab indicator.
461 * Let {@link TabHost} know that the user clicked on a tab indicator.
465 * Informs the TabHost which tab was selected. It also indicates
  /packages/apps/Settings/src/com/android/settings/applications/
ManageApplications.java 56 import android.widget.TabHost;
113 TabHost.TabContentFactory, TabHost.OnTabChangeListener {
565 final TabHost tabHost = getTabHost();
566 tabHost.addTab(tabHost.newTabSpec(TAB_DOWNLOADED)
570 tabHost.addTab(tabHost.newTabSpec(TAB_ALL)
574 tabHost.addTab(tabHost.newTabSpec(TAB_SDCARD
    [all...]

Completed in 4233 milliseconds

1 2 3