How to display a formula in a TextView

how can i display such string in TextView

How can I display such a string in TextView.

I tried a lot, but could not find a solution. I can not display the base value CHA2DS2-VASc.

0
source share
1 answer

I would suggest you create an HTML string for this formula and display it inside a TextView using:

String formulaString = "<body>CHA<sub>2</sub>DS<sub>2</sub>-VAS<sub>c</sub></body>";
textView.setText(Html.fromHtml(formulaString));
+9
source

All Articles