Android Question B4xPages module or layout

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am newbie using this,B4XPages, and I am a little confuse about if Pages are layout or modules. I mean if i have an option in my system for example "Invoice" and in this option we have a few layout to use and get information each layout will be a page or whole module will be? so if I need to use other layout just load it like before, LoadLayout("layout")?

Each pages is like an activity and if you need to use more layout just LoadLayout ?
I am confuse about this ....

Thks In Advance
 

LucaMs

Expert
Licensed User
Longtime User
Hi!
I am newbie using this,B4XPages, and I am a little confuse about if Pages are layout or modules. I mean if i have an option in my system for example "Invoice" and in this option we have a few layout to use and get information each layout will be a page or whole module will be? so if I need to use other layout just load it like before, LoadLayout("layout")?

Each pages is like an activity and if you need to use more layout just LoadLayout ?
I am confuse about this ....

Thks In Advance
A B4XPage is a CLASS module that contains and provides a basic pane/panel (B4XView), Root.

There is usually only one Activity; each B4XPage has its own Root and when a B4XPage is opened(show), the Root of the last page opened is always shown.

In a Root (pane/panel) you can load and remove as many layouts as you want; or you can create multiple B4XPages and also in each of these you can load a single layout or empty the Root and load another layout.

It depends on your design.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
So each layout could be a Page?
It depends on your design.

You can think of layout as a component. It can be loaded in full size of the Page or part of the Page (or panel).

For a full size layout, it can also contains a few panels. Each of this panel can also LoadLayout of another "child" layout.

Another example is when you create a "child" layout which will be loaded inside CustomListView. It doesn't need to be 100% width and 100% height of the page. You can set the layout with 60dip height.
 
Upvote 0
Top