title: In Android, what Layout is faster 1. FrameLayouts inside LinearLayout or 2. One big RelativeLayout?
body: <p>I am considering two different layout arrangements for a view (which will be a row in a RecyclerView). They are different, but they will both work, either as</p>
  
  <ol>
  <li>One container vertical LinearLayout containing rows of FrameLayouts e.g. LinearLayout -> FrameLayouts -> Content</li>
  <li>One big RelativeLayout that contains all other views (no FrameLayouts but all TextViews, Buttons and such) e.g. RelativeLayout -> Content</li>
  </ol>
  
  <p>Now I was wondering: which one would be more preferable in terms of Layout performance?</p>
  
  <p>It was my understanding that a RelativeLayout has to be measured twice and thus is pretty slow, while a FrameLayout is fast and a LinearLayout is ok in terms of layout performance. In one case I would only have one container that is slow (RelativeLayout -> Content) in the other I would have two containers that are quicker (LinearLayout -> FrameLayouts -> Content). </p>