Xml Comments
<b> </b>, <i> </i> and <u> </u>
<resources>
<string name="your_string_here">
This is an <u>underline</u>.
</string>
</resources>
TextView tv = (TextView) view.findViewById(R.id.tv);
SpannableString content = new SpannableString("Content");
content.setSpan(new UnderlineSpan(), 0, content.length(), 0);
tv.setText(content);
<shape android:shape = "rectangle">
<gradient
android:angle ="-90"
android:startColor ="#00000000"
android:centerColor ="#00000000"
android:endColor ="#4d000000"
android:type ="linear"/>
</shape>