how to underline terms and conditions text in android code example
Example: 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);