OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:tabHost
(Results
1 - 18
of
18
) sorted by null
/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
...]
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
...]
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
...]
/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());
/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
...]
/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/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(
/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(
PackageInstallerActivity.java
49
import android.widget.
TabHost
;
107
TabHost
tabHost
= (
TabHost
)findViewById(android.R.id.
tabhost
);
108
tabHost
.setup();
110
TabsAdapter adapter = new TabsAdapter(this,
tabHost
, viewPager);
111
adapter.setOnTabChangedListener(new
TabHost
.OnTabChangeListener() {
150
adapter.addTab(
tabHost
.newTabSpec(TAB_ID_NEW).setIndicator(
176
adapter.addTab(
tabHost
.newTabSpec(TAB_ID_ALL).setIndicator
[
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
...]
/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
...]
/packages/apps/Launcher3/src/com/android/launcher3/
FocusHelper.java
25
import android.widget.
TabHost
;
72
* Private helper to get the parent
TabHost
in the view hiearchy.
74
private static
TabHost
findTabHostParent(View v) {
76
while (p != null && !(p instanceof
TabHost
)) {
79
return (
TabHost
) p;
86
final
TabHost
tabHost
= findTabHostParent(v);
87
final ViewGroup contents =
tabHost
.getTabContentView();
88
final View shop =
tabHost
.findViewById(R.id.market_button);
137
final
TabHost
tabHost = findTabHostParent(container)
[
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;
409
// post-inflate process. For now this supports
TabHost
/TabWidget
[
all
...]
Completed in 451 milliseconds