WebView中去除文本空间 [英] WebView removing spaces from text

查看:126
本文介绍了WebView中去除文本空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的WebView来显示颜色和字体大小格式化的HTML文本文件。

I'm using a WebView to display a formatted HTML text file with color and font size.

我的问题是它使去掉空格形式的文本,就像它将两个词结合在了一起。我想这是因为它试图以适应屏幕宽度内的文字。我该如何解决这个问题?还是有更好的方式来显示这样的格式化文本? (我需要的大小,颜色,链接,有的居中文字

My problem is it keeps removing spaces form the text, like it will combine two words together. I think it is because it is trying to fit the text within the screen width. How do I fix this? Or is there a better way to display formatted text like this? (I need size, color, links, and some centered text

另外,我怎么去除白色背景下的滚动条?

Also, how do I remove the white background underneath the scrollbar?

谢谢!

推荐答案

是否文本文件中有一个空格字符的HTML &放大器; NBSP;?如果没有,那可能有帮助。

Does the text file have HTML character for a space " "? If not, that might help.

这篇关于WebView中去除文本空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆