开发者

how we can display pound and euro symbol in android TextView?

How do开发者_开发技巧 I display pound(£) and euro(€) symbol in TextView?

need help!


You can copy and paste them. € £

Here is a list of more unicode characters


String euro = "\u20ac";

String pound = "\u00a3";

tvAmount.setText(euro);

tvCurrency.setText(pound);

And also you can check list of other symbol here


More appropriate way will be to do it using Currency.

String euro = Currency.getInstance(Locale.GERMANY).getCurrencyCode();
String pound = Currency.getInstance(Locale.UK).getCurrencyCode();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜