public class

TextPaint

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

Class Overview

TextPaint is an extension of Paint that leaves room for some extra data used during text measuring and drawing.

Summary

[Expand]
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)
Copy the fields from tp into this TextPaint, including the fields inherited from Paint.
[Expand]
Inherited Methods
From class android.graphics.Paint
From class java.lang.Object

Fields

public int baselineShift

Since: API Level 1

public int bgColor

Since: API Level 1

public float density

Since: API Level 5

public int[] drawableState

Since: API Level 1

public int linkColor

Since: API Level 1

Public Constructors

public TextPaint ()

Since: API Level 1

public TextPaint (int flags)

Since: API Level 1

public TextPaint (Paint p)

Since: API Level 1

Public Methods

public void set (TextPaint tp)

Since: API Level 1

Copy the fields from tp into this TextPaint, including the fields inherited from Paint.