Android Guides | Samples

Android.Widget.TabWidget Class

Displays a list of tab labels representing each page in the parent's tab collection.

See Also: TabWidget

Syntax

[Android.Runtime.Register("android/widget/TabWidget", DoNotGenerateAcw=true)]
public class TabWidget : LinearLayout, View+IOnFocusChangeListener, IDisposable

Remarks

Displays a list of tab labels representing each page in the parent's tab collection. The container object for this widget is TabHost. When the user selects a tab, this object sends a message to the parent container, TabHost, to tell it to switch the displayed page. You typically won't use many methods directly on this object. The container TabHost is used to add labels, add the callback handler, and manage callbacks. You might call this object to iterate the list of tabs, or to tweak the layout of the tab list, but most methods should be called on the containing TabHost object.

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

See Also: LinearLayout

Public Constructors

Protected Constructors

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

Public Properties

StripEnabledBoolean. Indicates whether the bottom strips on the tab indicators are drawn or not.
[read-only]
TabCountInt32. Returns the number of tab indicator views.

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

DispatchDraw(Canvas)
Called by draw to draw the child views.
FocusCurrentTab(Int32)
Sets the current tab and focuses the UI on it.
GetChildTabViewAt(Int32) : View
Returns the tab indicator view at the given index.
OnFocusChange(View, Boolean)
Called when the focus state of a view has changed.
SetCurrentTab(Int32)
Sets the current tab.
override
SetDividerDrawable(Drawable)
Sets the drawable to use as a divider between the tab indicators.
SetDividerDrawable(Int32)
Sets the drawable to use as a divider between the tab indicators.
SetLeftStripDrawable(Drawable)
Sets the drawable to use as the left part of the strip below the tab indicators.
SetLeftStripDrawable(Int32)
Sets the drawable to use as the left part of the strip below the tab indicators.
SetRightStripDrawable(Drawable)
Sets the drawable to use as the right part of the strip below the tab indicators.
SetRightStripDrawable(Int32)
Sets the drawable to use as the right part of the strip below the tab indicators.