Most visited

Recently visited

Added in API level 1

TextPaint

public class TextPaint
extends Paint

java.lang.Object
   ↳ android.graphics.Paint
     ↳ android.text.TextPaint


TextPaint是Paint的扩展,为文本测量和绘图时使用的一些额外数据留出空间。

Summary

Inherited constants

From class android.graphics.Paint

Fields

public int baselineShift

public int bgColor

public float density

public int[] drawableState

public int linkColor

Public constructors

TextPaint()
TextPaint(int flags)
TextPaint(Paint p)

Public methods

void set(TextPaint tp)

将tp中的字段复制到此TextPaint中,包括从Paint继承的字段。

Inherited methods

From class android.graphics.Paint
From class java.lang.Object

Fields

baselineShift

Added in API level 1
int baselineShift

bgColor

Added in API level 1
int bgColor

density

Added in API level 5
float density

drawableState

Added in API level 1
int[] drawableState

linkColor

Added in API level 1
int linkColor

Public constructors

TextPaint

Added in API level 1
TextPaint ()

TextPaint

Added in API level 1
TextPaint (int flags)

Parameters
flags int

TextPaint

Added in API level 1
TextPaint (Paint p)

Parameters
p Paint

Public methods

set

Added in API level 1
void set (TextPaint tp)

将tp中的字段复制到此TextPaint中,包括从Paint继承的字段。

Parameters
tp TextPaint

Hooray!