Android Question Maximum number of Layouts per Activity?

Discussion in 'Android Questions' started by aaronk, Mar 15, 2015.

  1. aaronk

    aaronk Well-Known Member Licensed User


    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 ?

    Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
    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 ?
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is no limit to the number of layout files that you can load to the same activity.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice