Hi,
I have a working Mobile application which I would like to port to use B4XPages.
A 'brief skeletal' of the application is as follows:
There is only 1 Activity file:
The Activity has 2 Menu Items viz. Menu1 and Menu2
I have used Activity.AddMenuItem... to create them.
The application GUI comprises of 3 Layout files:
viz.
1) LayoutMain - This has one Tabstripviewer control called TabStrip1
2) Layout1 -> This is the gui for menu item 'Menu1'.
3) Layout2 -> This is the gui for menu item 'Menu2'.
I load them as follows:
Activity.LoadLayout("LayoutMain")
TabStrip1.LoadLayout("Layout1","Text on Tab for Menu 1")
TabStrip1.LoadLayout("Layout2","Text on Tab for Menu 2")
Activity.AddMenuItem("Title for Menu item1","evntMnu1")
Activity.AddMenuItem("Title for Menu item2","evntMnu2")
...
Sub evntMnu1_Click
TabStrip1.ScrollTo(0,True)
End sub
..
Sub evntMnu2_Click
TabStrip1.ScrollTo(1,True)
End Sub
..
Sub TabStrip1_PageSelected(Position as int)
....
If Position=0 then
'Change Title of Activity to 'Title for Menu 1'
else
'Change Title of Activity to 'Title for Menu 2'
end if
End Sub
My Doubt:
I would port this app to use B4XPages.. Please guide me.
Thanks.