panel setlayout error

Cor

Active Member
Licensed User
Longtime User
I want to show a panel

and later add views to it

but pnl.setlayout gives ->null pointer exception



B4X:
  dim pnl as panel

Sub showPanel
  pnl.Initialize("")
  pnl.SetLayout(5%x, 0%y, 60%x, 40%y)  '  null pointer exception
end sub
 
Top