Lin icon indicating copy to clipboard operation
Lin copied to clipboard

Repeated constraints in ConstraintLayout XMLs

Open Serchinastico opened this issue 7 years ago • 0 comments

Something like two views having the same constraint: app:layout_constraintStart_toStartOf="@id/transactionTypeIconView" is a smell because you can make the second view attached to the first one and leave a single constraint, creating a layout that is more resilient to changes (usually there will be only one point of change for multiple view hierarchies).

Serchinastico avatar Dec 11 '18 19:12 Serchinastico