Differece Between Layout and Panel ?

gkumar

Active Member
Licensed User
Longtime User
Could anyone tell me what is the difference between Layout and Panel ?
 

klaus

Expert
Licensed User
Longtime User
A Panel is a container view that holds other views.
A Layout is a file contaning a layout of views and is defined in the Designer.

A Layout can contain Panels.

Layouts must be loaded in the code, either onto Activities or Panels with LoadLayout.

Best regards.
 
Upvote 0

gkumar

Active Member
Licensed User
Longtime User
Thanks for your reply..

I have added one panel and one tabhost and saved as a layout file.
and trying to add 4 tabs with 4 different panels thru code.

but while debug, getting "java.io.FileNotFoundException: (balayout): layout not available.bal" error.

In Activity_Create sub called LoadLayout, Panel.Initialize, and AddTab subs.
dont know what I am missing here !
 
Upvote 0
Top