Android Question Programmatically change Designer script (for a ScrollView Control)

Azhar

Active Member
Licensed User
Longtime User
Hi All,

In my designer script I have this line which works very well for one layout:
B4X:
ScrollView1.SetTopAndBottom(lblTitle.Bottom+10dip,pnlForCPBar.Top-10dip)

But in my application, at some stage, I need the scrollview control to increase in size (height) and have its 'bottom' to the 'top-10dip' of another label control beneath it after I make the pnlForCPBar.Visible=False. I basically want to re-capture the void space.

Does anyone know how I can do this within the code? I don't really want to use the scrollview.height property as I cannot be sure if its changed height will overlap the same label control beneath it.

Thanks
 
Top