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.
public int bgColor sourcepublic int baselineShift sourcepublic int linkColor sourcepublic int[] drawableState sourcepublic float density sourcepublic int underlineColor sourcepublic float underlineThickness sourcepublic TextPaint() empty body sourcepublic TextPaint(int flags) sourcepublic TextPaint(Paint p) sourcepublic void set(TextPaint tp) sourcepublic void setUnderlineText(int color, float thickness) sourceMade 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.