android - textview 文本中的未知字符

标签 android xamarin

我已在 TextView 中设置文本

   TextView text = view.FindViewById<TextView>(Resource.Id.details);
   text.SetText(_text, TextView.BufferType.Normal);

显示时设置未知字符

enter image description here

如何正确书写unicode字符?

必须是这样的文本

enter image description here

最佳答案

试试这个,

text.setText(Html.fromHtml(_text));

关于android - textview 文本中的未知字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23948849/

相关文章:

android - 使用 androidannotations 触发 Intent

ios - Xamarin 低功耗蓝牙

android - 如何在相对布局中以编程方式在 LAYOUT_LEFT OF ="+/id"处设置 subview

java - java libgdx android 中的 float 问题

ios - 未找到授权文件 "Entitlements.plist"。错误

xaml - 使 Xamarin Forms 默认编译所有 XAML

android - android : what is different between notification and data payload 的通知

android - 为 Android 模拟器 x86 构建的 ZeroMQ

android - 如何让我的布局在多种屏幕尺寸和密度下看起来相同?

android - NestedScrollView 内的子级未覆盖整个屏幕高度