Android Question Scrollview...just need some clarification

Indy

Active Member
Licensed User
Longtime User
Hi All,

Can I just clarify something regarding Scrollviews as I am having some trouble getting things setup. Am I correct in assuming the following;

Scrollview.Height = View's physical fixed height.
Scrollview.Panel.Height = View's inner height, which is what it scrolls.

Thanks.
 

Indy

Active Member
Licensed User
Longtime User
Ok, so now that's been sorted. Is there a method of automating the inner panel height sizing? I've been testing a few things out and the only technique I can see is by obtaining the last view on the page and working out it's bottom value, and setting that as the inner height. Although this works I do feel there should be a better automated way of achieving this. Otherwise everytime a change is made then the value has to be updated manually.
 
Upvote 0

An Schi

Well-Known Member
Licensed User
You could add all the heights of the inner views.

Edit: wasn't there something like setting the height to -1 to make it fit?
 
Upvote 0
Top