Short answer: No, nested Row
s/Column
s should be fine.
Compose is designed to reduce the penalty for nesting layouts, and allow for layouts to be more easily...well, composed. The View system requires non-trivial overhead for each View
you create, so it was encouraged to avoid nesting them more than necessary and creating extra View
s.
While it's hard to say that there are no situations in which nesting Row
s and Column
s will cause a performance problem where ConstaintLayout
would work well, you shouldn't immediately jump to ConstraintLayout
when using nested Row
s/Column
s would allow you to more easily express your desired layout.
Note that currently Compose is pre-stable, so performance characteristics are subject to change (generally for the better) as development continues.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…