I have two completely different layouts that i want to load into a horizontal scrollview. How can i do this. If i try loading them as below, it only loads one layout
Also i have tried:
Both the codes don't work
B4X:
HorizontalScrollView2.Panel.LoadLayout("pnl1")
HorizontalScrollView2.Panel.LoadLayout("pnl2")
Also i have tried:
B4X:
Dim pnlsc As Panel
pnlsc.Initialize("")
pnlsc.LoadLayout("pnl1")
Dim pnlsc2 As Panel
pnlsc2.Initialize("")
pnlsc2.LoadLayout("pnl2")
HorizontalScrollView2.Panel.AddView(pnlsc2,0dip,0dip,HorizontalScrollView2.Width,HorizontalScrollView2.Height)
HorizontalScrollView2.Panel.AddView(pnlsc,Activity.width+10dip,0dip,HorizontalScrollView2.Width,HorizontalScrollView2.Height)
Both the codes don't work