Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim MyView As HorizontalScrollView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Activity.LoadLayout ("My_layout")
MyView.Initialize(100dip, "myview")
Activity.AddView(MyView,0,0,100%x,200dip)
Dim p1, p2 As Panel
p1.Initialize("p1")
p1.Color = Colors.red
p2.Initialize("p2")
p2.Color = Colors.blue
MyView.Panel.addview(p1,0,0,100dip,100%y)
MyView.Panel.addview(p2,100dip,0,1500dip,100%y)
MyView.Panel.Width = p1.Width+p2.Width 'this sets the scrollwidth relative to the activity width
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub