public class TabHost.TabSpec extends Object
View
2) a TabHost.TabContentFactory
that creates the View
content.
3) an Intent
that launches an Activity
.Modifier and Type | Method and Description |
---|---|
String |
getTag() |
TabHost.TabSpec |
setContent(int viewId)
Specify the id of the view that should be used as the content
of the tab.
|
TabHost.TabSpec |
setContent(Intent intent)
Specify an intent to use to launch an activity as the tab content.
|
TabHost.TabSpec |
setContent(TabHost.TabContentFactory contentFactory)
Specify a
TabHost.TabContentFactory to use to
create the content of the tab. |
TabHost.TabSpec |
setIndicator(CharSequence label)
Specify a label as the tab indicator.
|
TabHost.TabSpec |
setIndicator(CharSequence label,
Drawable icon)
Specify a label and icon as the tab indicator.
|
TabHost.TabSpec |
setIndicator(View view)
Specify a view as the tab indicator.
|
public TabHost.TabSpec setIndicator(CharSequence label)
public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon)
public TabHost.TabSpec setIndicator(View view)
public TabHost.TabSpec setContent(int viewId)
public TabHost.TabSpec setContent(TabHost.TabContentFactory contentFactory)
TabHost.TabContentFactory
to use to
create the content of the tab.public TabHost.TabSpec setContent(Intent intent)
public String getTag()