Share via


TabHost.TabSpec.SetIndicator Method

Definition

Overloads

SetIndicator(View)

Specify a view as the tab indicator.

SetIndicator(ICharSequence)

Specify a label as the tab indicator.

SetIndicator(String)
SetIndicator(ICharSequence, Drawable)

Specify a label and icon as the tab indicator.

SetIndicator(String, Drawable)

SetIndicator(View)

Specify a view as the tab indicator.

[Android.Runtime.Register("setIndicator", "(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;", "GetSetIndicator_Landroid_view_View_Handler")]
public virtual Android.Widget.TabHost.TabSpec SetIndicator (Android.Views.View view);
[<Android.Runtime.Register("setIndicator", "(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;", "GetSetIndicator_Landroid_view_View_Handler")>]
abstract member SetIndicator : Android.Views.View -> Android.Widget.TabHost.TabSpec
override this.SetIndicator : Android.Views.View -> Android.Widget.TabHost.TabSpec

Parameters

view
View

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetIndicator(ICharSequence)

Specify a label as the tab indicator.

[Android.Runtime.Register("setIndicator", "(Ljava/lang/CharSequence;)Landroid/widget/TabHost$TabSpec;", "GetSetIndicator_Ljava_lang_CharSequence_Handler")]
public virtual Android.Widget.TabHost.TabSpec SetIndicator (Java.Lang.ICharSequence label);
[<Android.Runtime.Register("setIndicator", "(Ljava/lang/CharSequence;)Landroid/widget/TabHost$TabSpec;", "GetSetIndicator_Ljava_lang_CharSequence_Handler")>]
abstract member SetIndicator : Java.Lang.ICharSequence -> Android.Widget.TabHost.TabSpec
override this.SetIndicator : Java.Lang.ICharSequence -> Android.Widget.TabHost.TabSpec

Parameters

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetIndicator(String)

public Android.Widget.TabHost.TabSpec SetIndicator (string label);
member this.SetIndicator : string -> Android.Widget.TabHost.TabSpec

Parameters

label
String

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetIndicator(ICharSequence, Drawable)

Specify a label and icon as the tab indicator.

[Android.Runtime.Register("setIndicator", "(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;", "GetSetIndicator_Ljava_lang_CharSequence_Landroid_graphics_drawable_Drawable_Handler")]
public virtual Android.Widget.TabHost.TabSpec SetIndicator (Java.Lang.ICharSequence label, Android.Graphics.Drawables.Drawable icon);
[<Android.Runtime.Register("setIndicator", "(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;", "GetSetIndicator_Ljava_lang_CharSequence_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetIndicator : Java.Lang.ICharSequence * Android.Graphics.Drawables.Drawable -> Android.Widget.TabHost.TabSpec
override this.SetIndicator : Java.Lang.ICharSequence * Android.Graphics.Drawables.Drawable -> Android.Widget.TabHost.TabSpec

Parameters

icon
Drawable

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetIndicator(String, Drawable)

public Android.Widget.TabHost.TabSpec SetIndicator (string label, Android.Graphics.Drawables.Drawable icon);
member this.SetIndicator : string * Android.Graphics.Drawables.Drawable -> Android.Widget.TabHost.TabSpec

Parameters

label
String
icon
Drawable

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to