Switch.SetSwitchTextAppearance(Context, Int32) 方法

定义

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

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

参数

context
Context

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

resid
Int32

int

属性

注解

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

Java文档android.widget.Switch.setSwitchTextAppearance(android.content.Context, int)

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

适用于