语言

Toolbar.SetTitleTextAppearance(Context, Int32) 方法

定义

设置指定 TextAppearance 资源中的文本颜色、大小、样式、提示颜色和突出显示颜色。

[Android.Runtime.Register("setTitleTextAppearance", "(Landroid/content/Context;I)V", "GetSetTitleTextAppearance_Landroid_content_Context_IHandler")]
public virtual void SetTitleTextAppearance(Android.Content.Context? context, int resId);
[<Android.Runtime.Register("setTitleTextAppearance", "(Landroid/content/Context;I)V", "GetSetTitleTextAppearance_Landroid_content_Context_IHandler")>]
abstract member SetTitleTextAppearance : Android.Content.Context * int -> unit
override this.SetTitleTextAppearance : Android.Content.Context * int -> unit

参数

context
Context

用于访问应用程序资源和服务的上下文。

resId
Int32

资源标识符。

属性

注解

设置指定 TextAppearance 资源中的文本颜色、大小、样式、提示颜色和突出显示颜色。

Java文档android.widget.Toolbar.setTitleTextAppearance(android.content.Context, int)

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

适用于