'Activity module
Sub Process_Globals
End Sub
Sub Globals
Dim BasicLabel As Label
Dim TabPanel As Panel
Dim ScrollView1 As ScrollView
Dim TabHost1 As TabHost
End Sub
Sub Activity_Create(FirstTime As Boolean)
ScrollView1.Initialize(200%y)
TabHost1.Initialize("TabHost1")
ScrollView1.Panel.AddView(TabHost1, 0, 0, 100%x, 200%y)
Activity.AddView(ScrollView1, 0, 0, 100%x, 100%y)
TabHost1.AddTab("Tab1", "TabPanel")
TabPanel.Width=-1
TabPanel.Height=-1
' here you could load another layout in TabPanel etc
BasicLabel.Text="This is tab1, width and height set to -1 fill parent (in code)"
TabHost1.AddTab("Tab2", "TabPanel")
TabPanel.Width=ScrollView1.Panel.Width
TabPanel.Height=200%y
BasicLabel.Text="This is tab2, height 200%y"
TabHost1.AddTab("Tab3", "TabPanel")
BasicLabel.Text="This is tab3, no width or height set (in code)"
TabHost1.AddTab("Tab4", "TabPanel")
TabPanel.Width=ScrollView1.Panel.Width
TabPanel.Height=ScrollView1.Panel.Height
BasicLabel.Text="This is tab4, width and height set to ScrollView1.Panel width and height"
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub