Matteo Granatiero Active Member Licensed User Nov 5, 2018 #1 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
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 Nov 5, 2018 #2 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
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")
klaus Expert Licensed User Longtime User Nov 6, 2018 #3 Move the 'control (panel)' from the layout file form2 to an individual layout file. If you need both layouts at the same time you can load several layouts onto the same parent. Upvote 0
Move the 'control (panel)' from the layout file form2 to an individual layout file. If you need both layouts at the same time you can load several layouts onto the same parent.