How can I display such a string in TextView.
TextView
I tried a lot, but could not find a solution. I can not display the base value CHA2DS2-VASc.
CHA2DS2-VASc
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));