+-
TextView在android中不显示像“àèìòù”这样的字符
我创建了一个文本视图.有各种语言字符使用.某些字符出现在某个地方,但不出现在文本视图中的某个位置.可能是什么原因.
最佳答案
不幸的是,你无法从strings.xml AFAIK那样做.

你还在做两件事之一.

Adding the Unicode character within java to the String in the XML file:

String str = "\u00A9" + getContext().getString(R.string.your_string);

Entering the text as HTML in java:

yourTextView.setText(Html.fromHtml("your chars");

希望这很有用.

参考Unicode characters not displayed in TextView.setText

点击查看更多相关文章

转载注明原文:TextView在android中不显示像“àèìòù”这样的字符 - 乐贴网