HomeSort by relevance Sort by last modified time
    Searched refs:tabHost (Results 1 - 15 of 15) sorted by null

  /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...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
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...]
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...]
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)
  /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...]
  /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(
  /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/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());
  /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/
PackageInstallerActivity.java 49 import android.widget.TabHost;
101 * details of connecting a ViewPager with associated TabHost. It relies on a
111 implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener {
113 private final TabHost mTabHost;
128 static class DummyTabFactory implements TabHost.TabContentFactory {
144 public TabsAdapter(Activity activity, TabHost tabHost, ViewPager pager) {
146 mTabHost = tabHost;
153 public void addTab(TabHost.TabSpec tabSpec, View view) {
197 // Unfortunately when TabHost changes the current tab, it kindl
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
FocusHelper.java 24 import android.widget.TabHost;
73 * Private helper to get the parent TabHost in the view hiearchy.
75 private static TabHost findTabHostParent(View v) {
77 while (p != null && !(p instanceof TabHost)) {
80 return (TabHost) p;
87 final TabHost tabHost = findTabHostParent(v);
88 final ViewGroup contents = tabHost.getTabContentView();
89 final View shop = tabHost.findViewById(R.id.market_button);
138 final TabHost tabHost = findTabHostParent(container)
    [all...]
AppsCustomizePagedView.java     [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderSessionImpl.java 89 import android.widget.TabHost;
90 import android.widget.TabHost.TabSpec;
395 // post-inflate process. For now this supports TabHost/TabWidget
    [all...]

Completed in 530 milliseconds