Java tutorial
//package com.java2s; import android.graphics.Paint; import android.widget.TextView; public class Main { public static void setUnderlineStr(TextView tv, String str) { tv.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG); tv.setText(str); } }