I am not sure if this is a bug or a limitation or I'm just not using it correctly.....
I have a 4 tabs and would like to use the same layout on each of them. The layout would have all the views I intend to use with generic names (btnR1, btnR2, lstSelection.......). The plan was to just change the text on buttons, hide/show views, etc. depending on which tab is selected. The view callbacks would check which tab is selected and act accordingly. When I attempt to do it, the layout only shows on the last tab added. The first 3 are blank. I am using v2.71
I have a 4 tabs and would like to use the same layout on each of them. The layout would have all the views I intend to use with generic names (btnR1, btnR2, lstSelection.......). The plan was to just change the text on buttons, hide/show views, etc. depending on which tab is selected. The view callbacks would check which tab is selected and act accordingly. When I attempt to do it, the layout only shows on the last tab added. The first 3 are blank. I am using v2.71
B4X:
TabHost1.AddTab("Tab1", "CommonLayout") ' Tab 0 blank
TabHost1.AddTab("Tab2", "CommonLayout") ' Tab 1 blank
TabHost1.AddTab("Tab3", "CommonLayout") ' Tab 2 blank
TabHost1.AddTab("Tab4", "CommonLayout") ' Tab 3 shows the layout