Android Question Generating Panels in Scrollview

eurojam

Well-Known Member
Licensed User
Longtime User
here we go...is the same like with other views:
B4X:
...
Panel0=ScrollView1.Panel 'get the internal scrollview panel
Dim panel1 As Panel
Dim PanelTop, PanelHeight As Int

PanelHeight=85dip
PanelTop = 0
Panel0.AddView(panel1,0,PanelTop,ScrollView1.Width,PanelHeight)
...
you can do this within a for loop and add the panel1 several times in different PanelTop Positions...
 
Upvote 0
Top