I'm trying to using this class loading a layout instead of creating the views runtime, but I obtain a blank page.
What's wrong in my code (I would expect to see the first line of the list as in the layout ClvOptions) ?
What's wrong in my code (I would expect to see the first line of the list as in the layout ClvOptions) ?
B4X:
NavControl.ShowPage(Page2)
clv1.Initialize(Me, "clv1", 100%X)
Dim pl As Panel
pl.Initialize("")
pl.LoadLayout("ClvOptions")
clv1.Add(pl, 60dip, pl)
Page2.RootPanel.AddView(clv1.AsView, 0, 0, 100%x, 100%y)