You can use Linkify to convert phone numbers, URLs, etc. links that, when clicked on, launch the corresponding applications (Dialer, Browser, etc.).
If you used only underscore, without links, you can:
- Mark text with HTML, especially
<u>...</u> for underlining - Run this via
Html.fromHtml() to get Spannable with your in-place formatting - Enter
Spannable in TextView via setText()
Here is a list of HTML tags supported by Android 2.1 version of Html.fromHtml() . Please note that this is not officially documented anywhere, so your mileage may vary.
CommonsWare Jun 11 2018-10-11T00: 00Z
source share