For a long time I heard that RelativeLayouts are slow. In a couple of talks I recall hearing that this type of layout calls onMeasure twice and that for some reason is a drag to performance.
However, I am taking a performance course at udacity and I watched the following video:
https://www.youtube.com/watch?time_continue=303&v=gK9tdeqqigE
Here, the instructor used the Hierarchy viewer tool to compare the rendering cost of the same viewgroup using a relative layout and nested linear layouts.
In the video, the relativelayout is the clear winner, which contradicts everything that I have heard until now about the issue.
Could you please help me to understand in which circumstances each approach is better?
Thank you