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
 

stevel05

Expert
Licensed User
Longtime User
Just a thought, but does it make any difference if you use 0 instead of 0%y?

Steve
 
Upvote 0
Top