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

  /cts/tests/tests/widget/src/android/widget/cts/
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...]
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 {
  /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)
  /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...]
  /cts/tests/app/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/tests/app/src/android/app/cts/
TabActivityTest.java 29 import android.widget.TabHost;
80 final TabHost tabHost = mActivity.getTabHost();
81 assertNotNull(tabHost);
82 assertNotNull(tabHost.getTabWidget());
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
GrantActivity.java 33 import android.widget.TabHost;
86 TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
87 tabHost.setup();
89 TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager);
94 adapter.addTab(tabHost.newTabSpec("new").setIndicator(
96 adapter.addTab(tabHost.newTabSpec("all").setIndicator(
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...]
PackageInstallerActivity.java 51 import android.widget.TabHost;
112 TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
113 tabHost.setup();
115 TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager);
116 adapter.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
155 adapter.addTab(tabHost.newTabSpec(TAB_ID_NEW).setIndicator(
181 adapter.addTab(tabHost.newTabSpec(TAB_ID_ALL).setIndicator
    [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...]
  /developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
MainActivity.java 58 import android.widget.TabHost;
59 import android.widget.TabHost.OnTabChangeListener;
60 import android.widget.TabHost.TabSpec;
263 TabHost tabHost = (TabHost) findViewById(R.id.tabHost);
264 tabHost.setup();
266 TabSpec spec1 = tabHost.newTabSpec(tabName);
271 TabSpec spec2 = tabHost.newTabSpec(tabName)
    [all...]
  /developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
MainActivity.java 58 import android.widget.TabHost;
59 import android.widget.TabHost.OnTabChangeListener;
60 import android.widget.TabHost.TabSpec;
263 TabHost tabHost = (TabHost) findViewById(R.id.tabHost);
264 tabHost.setup();
266 TabSpec spec1 = tabHost.newTabSpec(tabName);
271 TabSpec spec2 = tabHost.newTabSpec(tabName)
    [all...]
  /development/samples/Support7Demos/src/com/example/android/supportv7/media/
SampleMediaRouterActivity.java 64 import android.widget.TabHost;
65 import android.widget.TabHost.TabSpec;
66 import android.widget.TabHost.OnTabChangeListener;
266 TabHost tabHost=(TabHost)findViewById(R.id.tabHost);
267 tabHost.setup();
269 TabSpec spec1=tabHost.newTabSpec(tabName);
274 TabSpec spec2=tabHost.newTabSpec(tabName)
    [all...]
  /development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
MainActivity.java 58 import android.widget.TabHost;
59 import android.widget.TabHost.OnTabChangeListener;
60 import android.widget.TabHost.TabSpec;
263 TabHost tabHost = (TabHost) findViewById(R.id.tabHost);
264 tabHost.setup();
266 TabSpec spec1 = tabHost.newTabSpec(tabName);
271 TabSpec spec2 = tabHost.newTabSpec(tabName)
    [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 100 import android.widget.TabHost;
101 import android.widget.TabHost.TabSpec;
411 // post-inflate process. For now this supports TabHost/TabWidget
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
FocusHelper.java 62 * Private helper to get the parent TabHost in the view hiearchy.
403 final AppsCustomizeTabHost tabHost = findTabHostParent(parent);
404 final ViewGroup contents = tabHost.getContent();
428 tabHost.findViewById(v.getNextFocusRightId()).requestFocus();
    [all...]

Completed in 306 milliseconds