#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim IME As IME
Dim p As Panel
Dim e As EditText
Dim l As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
p.Initialize("panel")
l.Initialize("label")
l.Text = "Labeltext"
p.AddView(l,0%x,60%y,30%x,40%y)
e.Initialize("edittext1")
e.Color = Colors.LightGray
For i = 1 To 20
e.Text = e.Text & i & Chr(10) & Chr(13)
Next
p.AddView(e,30%x,60%y,70%x,40%y)
Activity.AddView(p,0,0,100%x, 100%y)
End Sub