YTerle
YTerle

Reputation: 2696

Change ConstraintLayout default margin

When we create a constraint to a view through the designer, it automatically creates margin for this constraint - 8dp. There are a lot of cases when I don't need that margin, so I have to manually remove it (or change to 0dp).

Is there a way we can customize a default margin for a constraint in ConstraintLayout ?

Upvotes: 6

Views: 4274

Answers (1)

BVantur
BVantur

Reputation: 1232

For ConstraintLayout child's you can set default margin like is shown on the image.

enter image description here

Upvotes: 7

Related Questions