anvil icon indicating copy to clipboard operation
anvil copied to clipboard

Constraint Layout DSL

Open sgrekov opened this issue 6 years ago • 4 comments

Adds Anvil DSL for Constraint Layout. Supports all features from CL 1.1

sgrekov avatar Jun 07 '19 19:06 sgrekov

Is not working here for me @sgrekov. See:

image

niltonvasques avatar Aug 29 '19 01:08 niltonvasques

Try put ConstraintDSL.apply() in the end of CL block

sgrekov avatar Aug 29 '19 07:08 sgrekov

Thank you @sgrekov, for you fast reply here.

After your hint, I was able to successfully apply the constraints, as we can see below:

image

However, I'm still facing other issues when we start to mix with relative properties. See:

image

niltonvasques avatar Aug 29 '19 17:08 niltonvasques

If you put size(MATCH, MATCH) to relativeLayout{} and to constraintLayout {} it should work as intended

sgrekov avatar Aug 29 '19 21:08 sgrekov