aaronk Well-Known Member Licensed User Longtime User Mar 15, 2015 #1 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 ? Code: Copy 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 ?
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 ? Code: Copy 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 ?
Erel B4X founder Staff member Licensed User Longtime User Mar 15, 2015 #2 There is no limit to the number of layout files that you can load to the same activity. Upvote 0