1

我正在开发一个WebViewsViewFlipper. 当我尝试同时(通过调用getSettings().setTextSize(TextSize))调整所有 webview 的字体大小时,只有翻转器中的当前视图会更新字体大小。我还尝试重新加载(webView.reload())隐藏视图,但它根本不起作用。

我能得到的最接近的方法是在 web 视图成为活动视图时重新加载它们,但是在字体大小更新之前会有几秒钟的延迟(而且我认为页面重新加载无论如何都不是一个好的答案。 ..)。

有谁知道如何更新 a 中的所有视图ViewFlipper?感谢您的回答:)

4

1 回答 1

0

All view inside viewflipper are initiated when you start or create Activity(depend on your code), so on flipping your web view is not updating. You should code inside OnFling() function for webview update, below link, you may looking for that..

Android ViewFlipper not flipping

于 2011-06-03T11:37:42.510 回答