TextPaint

Class of android.text · TextPaint.java · Android's reference

public class TextPaint extends Paint

TextPaint ← Paint

A Paint with the state spans set: the background, the baseline shift, the link color.

Fields

public int bgColor source
public int baselineShift source
public int linkColor source
public int[] drawableState source
public float density source
public int underlineColor source
public float underlineThickness source

Constructors

public TextPaint() empty body source
public TextPaint(int flags) source
public TextPaint(Paint p) source

Methods

public void set(TextPaint tp) source
public void setUnderlineText(int color, float thickness) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.