Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraint Layout DSL #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

sgrekov
Copy link
Collaborator

@sgrekov sgrekov commented Jun 7, 2019

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

@sgrekov sgrekov requested a review from zserge June 7, 2019 20:35
@niltonvasques
Copy link

niltonvasques commented Aug 29, 2019

Is not working here for me @sgrekov. See:

image

@sgrekov
Copy link
Collaborator Author

sgrekov commented Aug 29, 2019

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

@niltonvasques
Copy link

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

@sgrekov
Copy link
Collaborator Author

sgrekov commented Aug 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants