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
属性

注解

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

适用于 . 的 android.widget.Switch.setSwitchTextAppearance(android.content.Context, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于