Sub Activity_Create(FirstTime As Boolean)
Panel1.Initialize("Panel1")
Label1.Initialize("Label1")
Spinner1.Initialize("Spinner1")
Activity.AddView(Panel1,0,0,100%x,100%y)
Panel1.Color = Colors.Blue
Label1.Color = Colors.White
Label1.TextColor = Colors.Black
Label1.TextSize = 20
Label1.Text = "Ciao"
Panel1.AddView(Label1,0,2dip,100%x,-2)
Label1.Invalidate
DoEvents
Dim Reflect As Reflector
Reflect.Target=Label1
Dim Height As Int = Reflect.RunMethod("getHeight")
Log(Height)
Panel1.AddView(Spinner1,0,Label1.Top+Height+2dip,100%x,40dip)
Spinner1.AddAll(Array As String("Domenica", "Lunedì", "Martedì"))
End Sub