If i use the panel as layout, the app crashes with an exception that file is not found, because it is looking for layout file.
B4X:
For i=0 To 10
Dim pnlx As Panel
pnlx.Initialize("")
pnlx.Color=Colors.red
TabStrip1.LoadLayout(pnlx,"") 'this causes the app to crash as it expects a layout file
Next
The idea is for the panels to each hold several buttons and then scroll through these panels horizontally. All these is done in code without layout file. For now i can use scrollview though in this case the scrolling is vertical