📜  android 绘制带下划线的文本 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:34.242000             🧑  作者: Mango

代码示例1
String text = "Hello Word";
int left = 0;
int top = 0;
TextPaint textPaint = new TextPaint();
textPaint.setColor(Color.BLACK);
textPaint.setFlags(Paint.UNDERLINE_TEXT_FLAG);

canvas.draw(text, left, top, textPaint);