Android Guides | Samples

Android.App.ActionBar.Tab.SetCustomView Method

Set a custom view to be used for this tab.

Syntax

[Android.Runtime.Register("setCustomView", "(I)Landroid/app/ActionBar$Tab;", "GetSetCustomView_IHandler")]
public abstract ActionBar+Tab SetCustomView (Int32 layoutResId)

Parameters

layoutResId
A layout resource to inflate and use as a custom tab view

Remarks

Set a custom view to be used for this tab. This overrides values set by Tab.SetText(ICharSequence) and Tab.SetIcon(Drawable).

[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