I am creating complex layouts with many Views on various screens of my app.The documentation says that:
It is a common misconception that using the basic layout structures leads to the most efficient layouts. However, each widget and layout you add to your application requires initialization, layout, and drawing. For example, using nested instances of LinearLayout can lead to an excessively deep view hierarchy. Furthermore, nesting several instances of LinearLayout that use the layout_weight parameter can be especially expensive as each child needs to be measured twice.
So an alternative is to use Relative Layout or Constraint layout. This late 2018 article says Relative layout is better.
Today in terms of performance which one is better? Relative layout or Constraint layout?