滚动视图简化版,调整时的子视图的内容改变 [英] Scroll view does't resize when the content of child view changes

查看:133
本文介绍了滚动视图简化版,调整时的子视图的内容改变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个的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.

这篇关于滚动视图简化版,调整时的子视图的内容改变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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