语言

AlertDialog.Builder.SetCustomTitle(View) 方法

定义

使用自定义视图 customTitleView 设置标题。

[Android.Runtime.Register("setCustomTitle", "(Landroid/view/View;)Landroid/app/AlertDialog$Builder;", "GetSetCustomTitle_Landroid_view_View_Handler")]
public virtual Android.App.AlertDialog.Builder SetCustomTitle(Android.Views.View customTitleView);
[<Android.Runtime.Register("setCustomTitle", "(Landroid/view/View;)Landroid/app/AlertDialog$Builder;", "GetSetCustomTitle_Landroid_view_View_Handler")>]
abstract member SetCustomTitle : Android.Views.View -> Android.App.AlertDialog.Builder
override this.SetCustomTitle : Android.Views.View -> Android.App.AlertDialog.Builder

参数

customTitleView
View

视图:用作标题的自定义视图

返回

此 Builder 对象允许链接调用以设置方法

特性

注解

使用自定义视图 customTitleView 设置标题。 setTitle(int) 和 setIcon(int) 的方法应该足以用于大多数游戏,但如果游戏需要更多自定义项,则提供此方法。 使用此方法将替换通过其他方法设置的标题和图标。 注意:为了确保一致的样式设置,应使用通过 getContext 获取的警报对话框主题上下文来扩充或构造自定义视图。

Android 参考。android.app.AlertDialog.Builder.setCustomTitle

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

适用于