0

I want to display a little currency unit "đ" like this link in TextView. My code:

<string name="dong" formatted="false"><![CDATA[<u><small><font color="#FA6D1D">đ</font></small></u>]]></string>

But the little "đ" is not at the upright. So how can i do? Any comment is preciated. Thank in advance.

Steve Luck
  • 173
  • 1
  • 12

2 Answers2

1
setText(Html.fromHtml("15.000.000<sup><small>đ</small></sup>"));

For more details you can visit here

Android String Resource Superscript

Community
  • 1
  • 1
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
1

try it:

String yourValue = "15.000.000";
editText.setText(yourValue + Html.fromHtml("<u><sup><small><font color=red>d</font></small></sup><u/><br><br/>"));
Milad gh
  • 211
  • 1
  • 11