Hi,
Just wondering if there is a maximum number of layouts you can load per activity?
I am loading 5 layouts in the Activity_Create Sub and want to know if this would cause any issues down the track ?
Each layout only has approx. 4-5 labels & 3-4 images (small images).
I would put them all into one Layout file but I am using Multiple Activity's and not all Activity's use all the layout except for the first screen and it made it easier for me to use 5 different layouts.
Would the above code be OK to use or is there another way I should do this ?
Just wondering if there is a maximum number of layouts you can load per activity?
I am loading 5 layouts in the Activity_Create Sub and want to know if this would cause any issues down the track ?
B4X:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Activity.LoadLayout("layout1")
Activity.LoadLayout("layout2")
Activity.LoadLayout("layout3")
Activity.LoadLayout("layout4")
Activity.LoadLayout("layout5")
End If
End Sub
Each layout only has approx. 4-5 labels & 3-4 images (small images).
I would put them all into one Layout file but I am using Multiple Activity's and not all Activity's use all the layout except for the first screen and it made it easier for me to use 5 different layouts.
Would the above code be OK to use or is there another way I should do this ?