Sub Globals
' Dim tbHScegliPizza As TabHost
Dim Pagina As AHViewPager
Dim Contenitore As AHPageContainer
Dim Pannello(3) As Panel
Dim FixTab As AHViewPagerFixedTabs
End Sub
Sub Activity_Create(FirstTime As Boolean)
Contenitore.Initialize
Pannello(0).Initialize("")
Pannello(1).Initialize("")
Pannello(2).Initialize("")
For i = 0 To 2
If i = 0 Then
Pannello(0).LoadLayout("Tab1")
Contenitore.AddPage(Pannello(0), "Pomodoro")
Else If i = 1 Then
Pannello(1).LoadLayout("Tab2")
Contenitore.AddPage(Pannello(1), "Mozzarela e Pomodoro")
Else
Pannello(2).LoadLayout("Tab3")
Contenitore.AddPage(Pannello(2), "Bianca")
End If
Next
Pagina.Initialize(Contenitore, "Pagina")
FixTab.Initialize(Pagina)
FixTab.UpperCaseTitle = True
Activity.AddView(FixTab, 0, 0, 100%x, 50dip)
Activity.AddView(Pagina, 0, 60dip, Activity.Width, Activity.Height-108dip)
End Sub