While I understand why we need Fragments
( independent reusable modules, each handle its own UI which can change for tablets and phones, etc... ) if I ignore those reasons and try to keep it simple having a layout with 3-4 Fragments
with their lifecycles sounds more "expensive" than a layout with 3-4 ViewGroup
items.
Each time the Fragments
need to create their View they have a whole lifecycle ( onAttach -> onCreate -> onCreateView ... ). That means, I guess, using more system resources than an Activity with one Layout.
Even worst if I have something like a list ( not a ListFragment just 10 LinearLayouts
items ) shouldn't it be much more faster a UI with 10 ViewGroup
items than 10 Fragments
?