TextAppearanceSpan Constructors

Definition

Overloads

TextAppearanceSpan(Parcel)

Uses the specified TextAppearance resource to determine the text appearance.

TextAppearanceSpan(Context, Int32)

Uses the specified TextAppearance resource to determine the text appearance.

TextAppearanceSpan(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

TextAppearanceSpan(Context, Int32, Int32)

Uses the specified TextAppearance resource to determine the text appearance, and the specified text color resource to determine the color.

TextAppearanceSpan(String, TypefaceStyle, Int32, ColorStateList, ColorStateList)

Makes text be drawn with the specified typeface, size, style, and colors.

TextAppearanceSpan(Parcel)

Uses the specified TextAppearance resource to determine the text appearance.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public TextAppearanceSpan (Android.OS.Parcel? src);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Text.Style.TextAppearanceSpan : Android.OS.Parcel -> Android.Text.Style.TextAppearanceSpan

Parameters

src
Parcel
Attributes

Remarks

Java documentation for android.text.style.TextAppearanceSpan.TextAppearanceSpan(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

TextAppearanceSpan(Context, Int32)

Uses the specified TextAppearance resource to determine the text appearance.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public TextAppearanceSpan (Android.Content.Context? context, int appearance);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Text.Style.TextAppearanceSpan : Android.Content.Context * int -> Android.Text.Style.TextAppearanceSpan

Parameters

context
Context
appearance
Int32
Attributes

Remarks

Uses the specified TextAppearance resource to determine the text appearance. The appearance should be, for example, android.R.style.TextAppearance_Small.

Java documentation for android.text.style.TextAppearanceSpan.TextAppearanceSpan(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

TextAppearanceSpan(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected TextAppearanceSpan (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.Style.TextAppearanceSpan : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.Style.TextAppearanceSpan

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

TextAppearanceSpan(Context, Int32, Int32)

Uses the specified TextAppearance resource to determine the text appearance, and the specified text color resource to determine the color.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")]
public TextAppearanceSpan (Android.Content.Context? context, int appearance, int colorList);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")>]
new Android.Text.Style.TextAppearanceSpan : Android.Content.Context * int * int -> Android.Text.Style.TextAppearanceSpan

Parameters

context
Context
appearance
Int32
colorList
Int32
Attributes

Remarks

Uses the specified TextAppearance resource to determine the text appearance, and the specified text color resource to determine the color. The appearance should be, for example, android.R.style.TextAppearance_Small, and the colorList should be, for example, android.R.styleable.Theme_textColorPrimary.

Java documentation for android.text.style.TextAppearanceSpan.TextAppearanceSpan(android.content.Context, int, 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

TextAppearanceSpan(String, TypefaceStyle, Int32, ColorStateList, ColorStateList)

Makes text be drawn with the specified typeface, size, style, and colors.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;IILandroid/content/res/ColorStateList;Landroid/content/res/ColorStateList;)V", "")]
public TextAppearanceSpan (string? family, Android.Graphics.TypefaceStyle style, int size, Android.Content.Res.ColorStateList? color, Android.Content.Res.ColorStateList? linkColor);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;IILandroid/content/res/ColorStateList;Landroid/content/res/ColorStateList;)V", "")>]
new Android.Text.Style.TextAppearanceSpan : string * Android.Graphics.TypefaceStyle * int * Android.Content.Res.ColorStateList * Android.Content.Res.ColorStateList -> Android.Text.Style.TextAppearanceSpan

Parameters

family
String
size
Int32
linkColor
ColorStateList
Attributes

Remarks

Makes text be drawn with the specified typeface, size, style, and colors.

Java documentation for android.text.style.TextAppearanceSpan.TextAppearanceSpan(java.lang.String, int, int, android.content.res.ColorStateList, android.content.res.ColorStateList).

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