Multiple WebViews in ScrollView giving problems (Android)

I have a scrollview that has multiple webviews, these webviews load some pages. The problem is that I can’t explain, so you should see this .

Web views are distorted when scrolling, as shown. when loading for the first time they are fine.

+6
source share
3 answers

Yes, I have your problem. This is because android caches the elements available in scrollview. You must use caching correctly, pay attention to the methods. Use this link http://developer.android.com/reference/android/widget/ScrollView.html

+2
source

Try downloading each web view sequentially, that is, wait for the download to load the next one. Perhaps the problem is that it performs parallel requests, from what I know, ordinary browsers have limitations on the number of parallel requests to this host.

0
source

It is impossible to tell without seeing your XML, however, you should know that ScrollView can contain only one direct child.

0
source

Source: https://habr.com/ru/post/904195/


All Articles