How to add multiple webviews into a scrollview?

You must Login before you can answer or comment on any questions.

Im trying to add multiple webviews of varying heights to a scrollview.

Right now i'm doing a simple scrollview.add(webview); but unfortunately it simply overlaps the webviews on top of each other.

I dont know the heights of the webviews, as they are all of different heights, is there anyway to tell the scrollview to stack these webviews one after another without knowing the exact height?

thanks!!

— asked 2 years ago by C H
0 Comments

1 Answer

Accepted Answer

Add layout: 'vertical'to your ScrollView's properties.

— answered 2 years ago by Tony Lukasavage
answer permalink
2 Comments
  • That did it!

    — commented 2 years ago by C H

  • Hi, i am having the same prob but i cant did this do you please put some sample code for this. Thanks in advance.

    — commented 2 years ago by Anandhakumar Palanisamy

Your Answer

Think you can help? Login to answer this question!