Android Guides | Samples

Android.Widget.TabHost Class

Container for a tabbed window view.

See Also: TabHost

Syntax

[Android.Runtime.Register("android/widget/TabHost", DoNotGenerateAcw=true)]
public class TabHost : FrameLayout, ViewTreeObserver+IOnTouchModeChangeListener, IDisposable

Remarks

Container for a tabbed window view. This object holds two children: a set of tab labels that the user clicks to select a specific tab, and a FrameLayout object that displays the contents of that page. The individual elements are typically controlled using this container object, rather than setting values on the child elements themselves.

[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 are listed below.

See Also: FrameLayout

Public Constructors

Protected Constructors

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

Public Properties

CurrentTabInt32.
[read-only]
CurrentTabTagString.
[read-only]
CurrentTabViewView.
[read-only]
CurrentViewView.
[read-only]
TabContentViewFrameLayout. Get the FrameLayout which holds tab content
[read-only]
TabWidgetTabWidget.

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

AddTab(TabHost+TabSpec)
Add a tab.
ClearAllTabs()
Removes all tabs from the tab widget associated with this tab host.
NewTabSpec(String) : TabHost+TabSpec
Get a new NoType:android/widget/TabHost$TabSpec;Href=../../../reference/android/widget/TabHost.TabSpec.html associated with this tab host.
OnTouchModeChanged(Boolean)
Callback method to be invoked when the touch mode changes.
SetCurrentTabByTag(String)
SetOnTabChangedListener(TabHost+IOnTabChangeListener)
Register a callback to be invoked when the selected state of any of the items in this list changes
Setup()
Setup(LocalActivityManager)
If you are using NoType:android/widget/TabHost$TabSpec;Href=../../../reference/android/widget/TabHost.TabSpec.html#setContent(android.content.Intent), this must be called since the activityGroup is needed to launch the local activity.

Public Events