Android
android.widget
public class

android.widget.TabHost.TabSpec

java.lang.Object
android.widget.TabHost.TabSpec

A tab has a tab indictor, content, and a tag that is used to keep track of it. This builder helps choose among these options. For the tab indicator, your choices are: 1) set a label 2) set a label and an icon For the tab content, your choices are: 1) the id of a View 2) a TabHost.TabContentFactory that creates the View content. 3) an Intent that launches an Activity.

Summary

Public Methods

          TabHost.TabSpec  setContent(TabHost.TabContentFactory contentFactory)
Specify a TabHost.TabContentFactory to use to create the content of the tab.
          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  setIndicator(CharSequence label, Drawable icon)
Specify a label and icon as the tab indicator.
          TabHost.TabSpec  setIndicator(CharSequence label)
Specify a label as the tab indicator.
Methods inherited from class java.lang.Object

Details

Public Methods

public TabHost.TabSpec setContent(TabHost.TabContentFactory contentFactory)

Specify a TabHost.TabContentFactory to use to create the content of the tab.

public TabHost.TabSpec setContent(int viewId)

Specify the id of the view that should be used as the content of the tab.

public TabHost.TabSpec setContent(Intent intent)

Specify an intent to use to launch an activity as the tab content.

public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon)

Specify a label and icon as the tab indicator.

public TabHost.TabSpec setIndicator(CharSequence label)

Specify a label as the tab indicator.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56