i hope this code is usefull
B4X:
Dim scv As ScrollView
Dim hsv As HorizontalScrollView
scv.Initialize(0)
Activity.AddView(scv,0,0,100%x,100%y)
hsv.Initialize(0,"")
scv.Panel.AddView(hsv,100dip,0,100%x-100dip,100%y)
For i=0 To 50
Dim lbl As Label
lbl.Initialize(0)
lbl.Text="A"&i
lbl.Color = Colors.LightGray
lbl.TextColor=Colors.Black
scv.Panel.AddView(lbl,0,i*20dip,49dip,19dip)
Dim lbl As Label
lbl.Initialize(0)
lbl.Text="B"&i
lbl.Color = Colors.LightGray
lbl.TextColor=Colors.Black
scv.Panel.AddView(lbl,50dip,i*20dip,49dip,19dip)
For j=0 To 10
Dim lbl As Label
lbl.Initialize(0)
lbl.Text=i & ":" & j
lbl.Color = Colors.White
hsv.Panel.AddView(lbl,j*100dip,i*20dip,99dip,19dip)
Next
Next
scv.Panel.Height=50*20dip
hsv.Height=50*20dip
hsv.Panel.Width=j*100dip
Last edited: