Sub Globals
Dim th As TabHost
End Sub
Sub Activity_Create (FirstTime As Boolean)
th.Initialize("th")
Dim p1, p2 As Panel
p1.Initialize("")
p2.Initialize("")
Dim b1 As Button
b1.Initialize("")
p1.AddView(b1, 10dip, 10dip, 100dip, 100dip)
Dim et As EditText
et.Initialize("")
p2.AddView(et, 10dip, 10dip, 100dip, 100dip)
th.AddTab2("1", p1)
th.AddTab2("2", p2)
Activity.AddView(th, 0, 0, 100%x, 100%y)
End Sub