TextAppearanceSpan 构造函数

定义

重载

TextAppearanceSpan(Parcel)

使用指定的 TextAppearance 资源来确定文本外观。

TextAppearanceSpan(Context, Int32)

使用指定的 TextAppearance 资源来确定文本外观。

TextAppearanceSpan(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

TextAppearanceSpan(Context, Int32, Int32)

使用指定的 TextAppearance 资源来确定文本外观,使用指定的文本颜色资源来确定颜色。

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

使用指定的字样、大小、样式和颜色绘制文本。

TextAppearanceSpan(Parcel)

使用指定的 TextAppearance 资源来确定文本外观。

[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

参数

src
Parcel
属性

注解

适用于 . 的 android.text.style.TextAppearanceSpan.TextAppearanceSpan(android.content.Context, int)Java 文档

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

适用于

TextAppearanceSpan(Context, Int32)

使用指定的 TextAppearance 资源来确定文本外观。

[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

参数

context
Context
appearance
Int32
属性

注解

使用指定的 TextAppearance 资源来确定文本外观。 例如,android.R.style.TextAppearance_Small应为 .appearance

适用于 . 的 android.text.style.TextAppearanceSpan.TextAppearanceSpan(android.content.Context, int)Java 文档

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

适用于

TextAppearanceSpan(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

参数

javaReference
IntPtr

nativeint

IntPtr一个包含 Java 本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

TextAppearanceSpan(Context, Int32, Int32)

使用指定的 TextAppearance 资源来确定文本外观,使用指定的文本颜色资源来确定颜色。

[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

参数

context
Context
appearance
Int32
colorList
Int32
属性

注解

使用指定的 TextAppearance 资源来确定文本外观,使用指定的文本颜色资源来确定颜色。 例如,android.R.style.TextAppearance_Smallappearance为 ,并且colorList应为android.R.styleable.Theme_textColorPrimary例如。

适用于 . 的 android.text.style.TextAppearanceSpan.TextAppearanceSpan(android.content.Context, int, int)Java 文档

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

适用于

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

使用指定的字样、大小、样式和颜色绘制文本。

[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

参数

family
String
size
Int32
linkColor
ColorStateList
属性

注解

使用指定的字样、大小、样式和颜色绘制文本。

适用于 . 的 android.text.style.TextAppearanceSpan.TextAppearanceSpan(java.lang.String, int, int, android.content.res.ColorStateList, android.content.res.ColorStateList)Java 文档

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

适用于