滚动视图简化版,调整时的子视图的内容改变

编程入门 行业动态 更新时间:2024-10-25 02:22:12
本文介绍了滚动视图简化版,调整时的子视图的内容改变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

滚动视图简化版,调整时的子视图的内容改变

本文发布于:2023-10-27 00:14:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531760.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视图   简化版   内容

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!