我有一个的WebView 在滚动型。
的WebView 的内容时,它会显示不同的HTML页面dyanamically变化。
The content of WebView dyanamically changes when it displays different html page.
我有以下问题:
例如我有 A.html 和 B.html 。的含量 B.html 比 A.html 较大,所以页面是更长的时间。
For example I have A.html, and B.html. The content of B.html is larger than A.html, so the page is longer.
在的WebView 负荷 B.html 中,滚动型延伸其大小,以使自己滚动的B.html,那么,如果我回去 A.html ,滚动型不调整自身。 (滚动区域是超过的含量 A.html )
When WebView load B.html, the ScrollView stretches its size to enable itself scroll for B.html, then if I go back to A.html, ScrollView doesn't resize itself. (The scroll area is exceed the content of A.html)
我想有什么,是动态变化的滚动视图滚动区域以适合web视图的内容。
What I want to have, is dynamic change the scroll area of scroll view to fit the webview's content.
任何想法或建议
推荐答案这不是好主意放置的WebView滚动型的内部。的WebView是足够聪明本身显示滚动条。
That's not good idea to place WebView inside of ScrollView. WebView is smart enough to show scrollbars by itself.
更多推荐
滚动视图简化版,调整时的子视图的内容改变
发布评论