Search code examples
androidandroid-layout

most lightweight ViewGroup for containers


what is the ViewGroup you should use when needing a container e.g. for a fragmenttransaction? I am kind of between FrameLayout and LinearLayout from my feeling but I would like to make a decision on facts ;-)


Solution

  • The android project template uses FrameLayout for fragment transactions, so I'd go with the FrameLayout