public static void underline(TextView textView) { if (textView != null) { textView.setPaintFlags(textView.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); } }