Android Guides | Samples

Android.App.ActionBar.Tab Class

A tab in the action bar.

See Also: ActionBar+Tab

Syntax

[Android.Runtime.Register("android/app/ActionBar$Tab", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public abstract class ActionBar.Tab : Object

Remarks

A tab in the action bar.

Tabs manage the hiding and showing of Fragments.

[Android Documentation]

Requirements

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

The members of Android.App.ActionBar.Tab are listed below.

See Also: Object

Public Constructors

Protected Constructors

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

Public Fields

const
InvalidPositionInt32 (-1). An invalid position for a tab.

Public Properties

[read-only]
ContentDescriptionString.
[read-only]
abstract
ContentDescriptionFormattedICharSequence. Gets a brief description of this tab's content for use in accessibility support.
[read-only]
abstract
CustomViewView. Retrieve a previously set custom view for this tab.
[read-only]
abstract
IconDrawable. Return the icon associated with this tab.
[read-only]
abstract
PositionInt32. Return the current position of this tab in the action bar.
[read-only]
abstract
TagObject.
[read-only]
TextString.
[read-only]
abstract
TextFormattedICharSequence. Return the text of this tab.

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

abstract
Select()
Select this tab.
abstract
SetContentDescription(ICharSequence) : ActionBar+Tab
Set a description of this tab's content for use in accessibility support.
abstract
SetContentDescription(Int32) : ActionBar+Tab
Set a description of this tab's content for use in accessibility support.
SetContentDescription(String) : ActionBar+Tab
abstract
SetCustomView(View) : ActionBar+Tab
Set a custom view to be used for this tab.
abstract
SetCustomView(Int32) : ActionBar+Tab
Set a custom view to be used for this tab.
abstract
SetIcon(Drawable) : ActionBar+Tab
Set the icon displayed on this tab.
abstract
SetIcon(Int32) : ActionBar+Tab
Set the icon displayed on this tab.
abstract
SetTabListener(ActionBar+ITabListener) : ActionBar+Tab
Set the ActionBar+ITabListener that will handle switching to and from this tab.
abstract
SetTag(Object) : ActionBar+Tab
Give this Tab an arbitrary object to hold for later use.
abstract
SetText(ICharSequence) : ActionBar+Tab
Set the text displayed on this tab.
abstract
SetText(Int32) : ActionBar+Tab
Set the text displayed on this tab.
SetText(String) : ActionBar+Tab

Public Events