Skip to content

Repeated constraints in ConstraintLayout XMLs #24

@Serchinastico

Description

@Serchinastico

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).

Metadata

Metadata

Assignees

Labels

ruleNew rule for the detectors project

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions