web视图高度不改变后调整字体大小 [英] Webview height not changing after resize font size

查看:227
本文介绍了web视图高度不改变后调整字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序使用滚动型。这种滚动型包含许多web视图。 我改变的WebView字体大小:

In my application I use a ScrollView. This ScrollView contain many Webview. I change the webview font size:

webView.getSettings().setTextSize(WebSettings.TextSize.LARGER);

后,我再次改变字体大小:

after I change again the font size:

webView.getSettings().setTextSize(WebSettings.TextSize.SMALLER);

字体大小是变化的,但web视图布局高度没有改变。文本较小,有一个大的空间。 有任何方法对这个问题?

The font size is changing, but the webview layout height is not changing. The text is smaller and there are a big space. There are any method to this problem?

推荐答案

您可以使用此:

myWebView.loadUrl("about:blank");

这篇关于web视图高度不改变后调整字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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