Android TextViews 和 WebViews 设置 html 文本不一致
我正在使用 Html.fromHtml 将 Text 设置为我的 textView。这是我的文字。
下图未按比例绘制。以下哪项最有可能是 ∠P 的值?
在这句话中,角符号是 html 值( )。
它在模拟器中运行良好。我还在一些 Android 设备(一些未命名的平板电脑和电子书阅读器)上进行了测试。他们都还好。但在我的 Android 手机(索尼 Xperia X8)中,它没有渲染角度符号。相反,它显示 。
有什么问题吗?尽管它只是一个渲染简单 html 的 textview ,但为什么它在不同设备上不一致?更重要的是,我该如何解决这个问题。以下是我的问题的图形表示。
编辑:它不仅在文本视图中,而且在网络视图中。我更改为使用 webview 而不是 textview。不幸的是,它并没有成功。有人知道吗?
I am using Html.fromHtml to setText to my textView. Here is my text.
The figure below is not drawn to scale. Which of the following will most likely to be the value of ∠P?
In this sentence, angle sign is html value ( ).
It is working fine in emulator. I also tested on some android device (some unnamed tablets an ebook readers). They are ok. But in my android phone (Sony Xperia X8), it is not rendering angle sign. Instead, it is showing .
Is there anything wrong? Why is it not being consistent across devices although it is just a textview rendering simple html? More importantly, how could I solve this issue. Following is my graphical representation of my problem.
Edit: It is not only in textviews but also in webviews. I changed using webview instead of textview. Unfortunately, it didn't work out as well. Anyone got any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论