我们如何在Android TextView中显示英镑和欧元符号?

Kam*_*mar 14 android

如何显示英镑(£)和欧元(€)符号TextView

需要帮忙!

Maa*_*lte 33

您可以复制并粘贴它们.€£

这是一个更多unicode字符的列表


小智 18

String euro = "\u20ac";

String pound = "\u00a3";

tvAmount.setText(euro);

tvCurrency.setText(pound);
Run Code Online (Sandbox Code Playgroud)

,你也可以检查其他符号的列表在这里


Wah*_*Haq 10

更合适的方式是使用它Currency.

String euro = Currency.getInstance(Locale.GERMANY).getCurrencyCode();
String pound = Currency.getInstance(Locale.UK).getCurrencyCode();
Run Code Online (Sandbox Code Playgroud)