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