Udostępnij za pośrednictwem


Switch.SetSwitchTextAppearance(Context, Int32) Method

Definition

Sets the switch text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

[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

Parameters

context
Context
resid
Int32
Attributes

Remarks

Sets the switch text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Java documentation for android.widget.Switch.setSwitchTextAppearance(android.content.Context, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to