Android Guides | Samples

Android.Widget.TabHost.TabSpec Class

A tab has a tab indicator, content, and a tag that is used to keep track of it.

See Also: TabHost+TabSpec

Syntax

[Android.Runtime.Register("android/widget/TabHost$TabSpec", DoNotGenerateAcw=true)]
public class TabHost.TabSpec : Object

Remarks

A tab has a tab indicator, 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+ITabContentFactory that creates the View content. 3) an Intent that launches an Activity.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.TabHost.TabSpec are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
TagString.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

SetContent(Intent) : TabHost+TabSpec
Specify an intent to use to launch an activity as the tab content.
SetContent(TabHost+ITabContentFactory) : TabHost+TabSpec
Specify a TabHost+ITabContentFactory to use to create the content of the tab.
SetContent(Int32) : TabHost+TabSpec
Specify the id of the view that should be used as the content of the tab.
SetIndicator(View) : TabHost+TabSpec
Specify a view as the tab indicator.
SetIndicator(ICharSequence) : TabHost+TabSpec
Specify a label as the tab indicator.
SetIndicator(String) : TabHost+TabSpec
SetIndicator(ICharSequence, Drawable) : TabHost+TabSpec
Specify a label and icon as the tab indicator.
SetIndicator(String, Drawable) : TabHost+TabSpec