语言

ActionBar.Tab.SetCustomView 方法

定义

重载

名称 说明
SetCustomView(Int32)
已过时.

设置要用于此选项卡的自定义视图。

SetCustomView(View)
已过时.

设置要用于此选项卡的自定义视图。

SetCustomView(Int32)

注意

deprecated

设置要用于此选项卡的自定义视图。

[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

参数

layoutResId
Int32

int:用于膨胀和用作自定义选项卡视图的布局资源

返回

调用链接的当前实例

特性

注解

设置要用于此选项卡的自定义视图。这会替代 setText(CharSequence) 和 setIcon(Drawable)设置的值。

Android 参考。android.app.ActionBar.Tab.setCustomView

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

SetCustomView(View)

注意

deprecated

设置要用于此选项卡的自定义视图。

[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

参数

view
View

视图:用作选项卡的自定义视图。

返回

调用链接的当前实例

特性

注解

设置要用于此选项卡的自定义视图。这会替代 setText(CharSequence) 和 setIcon(Drawable)设置的值。

Android 参考。android.app.ActionBar.Tab.setCustomView

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于