Hi.
Following this example:
https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content
I understood the navigation between layouts.
My target is have a SegmentedControl on the top of a layout with 4 Items. And for each Item charge a layout. My question is, Do I need have a SegmentedControl on the 4 layouts? or Can I have a only SegmentedControl and work with panels?
For example:
In my opinion work with panel for this target is not the best option, because all the app have only a layout, but I dont know how can I do this with layouts.
Any Idea or example?
Thanks!!!!
Following this example:
https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content
I understood the navigation between layouts.
My target is have a SegmentedControl on the top of a layout with 4 Items. And for each Item charge a layout. My question is, Do I need have a SegmentedControl on the 4 layouts? or Can I have a only SegmentedControl and work with panels?
For example:
B4X:
SC as segmentedcontrol
Sub SC_IndexChanged (Index As Int)
select index
case 0:
panel1.visible=true
panel2.visible=false
panel3.visible=false
panel4.visible=false
case 1:
panel1.visible=false
panel2.visible=true
panel3.visible=false
panel4.visible=false
case 2:
.
.
.
case 3:
.
.
.
end select
end Sub
In my opinion work with panel for this target is not the best option, because all the app have only a layout, but I dont know how can I do this with layouts.
Any Idea or example?
Thanks!!!!