Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 830
YTerle Avatar asked Oct 24 '17 12:10

YTerle


1 Answers

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

enter image description here

like image 73
BVantur Avatar answered Sep 28 '22 11:09

BVantur