TextView.SetTextAppearance TextView.SetTextAppearance Method

Definition

Overloads

SetTextAppearance(Int32) SetTextAppearance(Int32)
SetTextAppearance(Context, Int32) SetTextAppearance(Context, Int32)

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

SetTextAppearance(Int32) SetTextAppearance(Int32)

[Android.Runtime.Register("setTextAppearance", "(I)V", "GetSetTextAppearance_IHandler", ApiSince=23)]
public virtual void SetTextAppearance (int resId);
abstract member SetTextAppearance : int -> unit
override this.SetTextAppearance : int -> unit

Parameters

resId
Int32 Int32

Remarks

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.

SetTextAppearance(Context, Int32) SetTextAppearance(Context, Int32)

Warning

This API is now obsolete.

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

[Android.Runtime.Register("setTextAppearance", "(Landroid/content/Context;I)V", "GetSetTextAppearance_Landroid_content_Context_IHandler")]
[System.Obsolete("deprecated")]
public virtual void SetTextAppearance (Android.Content.Context context, int resId);
abstract member SetTextAppearance : Android.Content.Context * int -> unit
override this.SetTextAppearance : Android.Content.Context * int -> unit

Parameters

context
Context Context
resId
Int32 Int32

Remarks

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