Hello,
I have a tabhost in my app defined by code. Besides this, I have a Panel defined by code too. In activity_create, I'm trying to load a layout with seven buttons, all of them created with the designer.
But when I want to get the number of views into the panel, this is 3 (temp=3) :-(
I have a tabhost in my app defined by code. Besides this, I have a Panel defined by code too. In activity_create, I'm trying to load a layout with seven buttons, all of them created with the designer.
B4X:
TabHost1.Initialize("TabHost1")
Activity.AddView(TabHost1,0%x,0%y,100%x,100%y)
Panel1.Initialize("Panel1")
Panel1.LoadLayout("F27_varios")
TabHost1.AddTab2("Varios",Panel1)
TabHost1.AddTab("Versiones","F27_versiones")
But when I want to get the number of views into the panel, this is 3 (temp=3) :-(
B4X:
Dim temp As Byte=Panel1.NumberOfViews