ActionBar.Tab.SetCustomView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetCustomView(Int32) |
Obsolete.
Set a custom view to be used for this tab. |
| SetCustomView(View) |
Obsolete.
Set a custom view to be used for this tab. |
SetCustomView(Int32)
Caution
deprecated
Set a custom view to be used for this tab.
[Android.Runtime.Register("setCustomView", "(I)Landroid/app/ActionBar$Tab;", "GetSetCustomView_IHandler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetCustomView(int layoutResId);
[<Android.Runtime.Register("setCustomView", "(I)Landroid/app/ActionBar$Tab;", "GetSetCustomView_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetCustomView : int -> Android.App.ActionBar.Tab
Parameters
- layoutResId
- Int32
int: A layout resource to inflate and use as a custom tab view
Returns
The current instance for call chaining
- Attributes
Remarks
Set a custom view to be used for this tab. This overrides values set by setText(CharSequence) and setIcon(Drawable).
Android reference for android.app.ActionBar.Tab.setCustomView.
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
SetCustomView(View)
Caution
deprecated
Set a custom view to be used for this tab.
[Android.Runtime.Register("setCustomView", "(Landroid/view/View;)Landroid/app/ActionBar$Tab;", "GetSetCustomView_Landroid_view_View_Handler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetCustomView(Android.Views.View view);
[<Android.Runtime.Register("setCustomView", "(Landroid/view/View;)Landroid/app/ActionBar$Tab;", "GetSetCustomView_Landroid_view_View_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetCustomView : Android.Views.View -> Android.App.ActionBar.Tab
Parameters
- view
- View
View: Custom view to be used as a tab.
Returns
The current instance for call chaining
- Attributes
Remarks
Set a custom view to be used for this tab. This overrides values set by setText(CharSequence) and setIcon(Drawable).
Android reference for android.app.ActionBar.Tab.setCustomView.
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.