Android Question ScrollView: load only panel and not all Form

Matteo Granatiero

Active Member
Licensed User
I use this code
B4X:
Private scroll as ScrollView

scroll.Panel.LoadLayout("form2")
    scroll.Panel.Height = 230%y
I would like to load only a control (panel) of form2 into the Scroll.Panel
 

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
Create a panel, add it to the scrollview then load the layout into it, pseudocode:
B4X:
Dim poPan as panel
poPan.Initialize("")
scroll.panel.addview(popan, 0, 0, scroll.width, 100dip)
poPan.loadlayout("form2")
 
Upvote 0
Top