Sub Globals
Dim p As Panel
Dim lbl1, lbl2, lbl3 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
p.Initialize("p")
Activity.AddView(p, 0, 0, 100%x, 100%y)
lbl1.Initialize("")
p.AddView(lbl1,10dip, 10dip, 150dip, 40dip)
lbl2.Initialize("")
p.AddView(lbl2,10dip, 60dip, 150dip, 40dip)
lbl3.Initialize("")
p.AddView(lbl3,10dip, 110dip, 150dip, 40dip)
End Sub
Sub p_Touch (Action As Int, X As Float, Y As Float) As Boolean
Select Action
Case Activity.ACTION_DOWN
lbl1.Text = "down"
Case Activity.ACTION_MOVE
lbl2.Text = "move"
Case Activity.ACTION_UP
lbl3.Text = "up"
End Select
Return True
End Sub