TextAppearanceSpan Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| 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
The parcel from which to read the span's saved state.
- Attributes
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)
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
The context used to resolve text appearance and theme resources.
- appearance
- Int32
The resource ID of the text appearance style.
- Attributes
Remarks
Uses the specified TextAppearance resource to determine the text appearance. The appearance should be, for example, android.R.style.TextAppearance_Small.
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
- 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
The context used to resolve text appearance and theme resources.
- appearance
- Int32
The resource ID of the text appearance style.
- colorList
- Int32
The index of the theme color-state-list attribute used to override the text color, or a negative value to keep the appearance's text color.
- 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.
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
The font family name, or null to leave the family unspecified.
- style
- TypefaceStyle
The typeface style to apply.
- size
- Int32
The text size in pixels. A value that is not positive leaves the paint's size unchanged.
- color
- ColorStateList
The text color state list, or null to leave the text color unchanged.
- linkColor
- ColorStateList
The link color state list, or null to leave the link color unchanged.
- Attributes
Remarks
Makes text be drawn with the specified typeface, size, style, and colors.
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.