0
Q:

android draw underlined text

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);
0

New to Communities?

Join the community