Farhan
Farhan

Reputation: 13390

Multiple WebViews in ScrollView giving issues (Android)

I have a scrollview which has multiple webviews, these webviews are loading some pages. The problem is that i cannot explain so you have to see this.

The webviews upon scrolling get distorted as shown in the picture. when load for the first time they are ok.

Upvotes: 6

Views: 1953

Answers (3)

Chetan
Chetan

Reputation: 1151

Yes , I got your problem. It happens because android does the caching of the elements available in the scrollview. You should use caching properly , look out for the methods.Use this link http://developer.android.com/reference/android/widget/ScrollView.html

Upvotes: 2

NickT
NickT

Reputation: 23873

It's impossible to tell without seeing your XML, however you should be aware that a ScrollView can host only one direct child.

Upvotes: 0

Emil Davtyan
Emil Davtyan

Reputation: 14089

Try loading each webview sequentially, meaning wait till one loads before loading the next. It might be an issue with it making parallel requests, from what I know regular browsers have limits on the number parallel requests to a given host.

Upvotes: 0

Related Questions