I haven't run your project cause i'm browsing the forum on the phone....
....but my own 'noob mistakes' come to my mind:
- do you remove the views before (re)loading another layout?
- are you aware that a scrollview has an important value - namely the inner panel height?
Hi An Schi!
Yes! I remove the views and change the panel height.
Thank you by the reply!
What is btnHome supposed to do?
You should not reload the same layout!
You are mixing up some principles:
- You use AutoScaleAll.
- Then you resize all the views with %x and %y, this overrides AutoScale for the dimensions and position but not for the text size.
- And in the code you set scv.Panel.Height = 2500dip to a given fixed value 2500dip, why? You should use scv.Panel.Height = pnBotoes.Height.
Hi, Klaus!
On my final project I have some layouts.
I need to access every layout and in some point, I will need back to "principal" layout. This is what btnHome do (return to "principal").
I tried scv.Panel.Height = pnBotoes.Height, but when I use it everytime I reload the "pricipal" layout, the height of the panel seems to change, then the buttons change their height too (they grow up).
My app will work only in portrait.
I need learn more about scale.
I will check the tips you gave me!
[EDIT]
I think my problem was with the %x and %y, because now you setted the anchors, when I reload the layout, it is not changing the height!
Thank you so much!