Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim su As StringUtils
Dim ScrollView1 As ScrollView
Dim Label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Label1.Initialize("Label1")
ScrollView1.Width = 100%x
ScrollView1.Height = 100%y
Label1.Text = "some long text here"
ScrollView1.Panel.AddView(Label1, 0dip, 0dip, ScrollView1.Width, ScrollView1.Panel.Height)
ScrollView1.Panel.Height = su.MeasureMultilineTextHeight(Label1, Label1.Text)
Label1.Height = su.MeasureMultilineTextHeight(Label1, Label1.Text)
End Sub