Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Add demo for ConstraintLayout feature for chains with weights #47

Closed
noorejannat opened this issue May 27, 2018 · 0 comments
Closed

Add demo for ConstraintLayout feature for chains with weights #47

noorejannat opened this issue May 27, 2018 · 0 comments
Labels
core Application core components enhancement New feature or request
Milestone

Comments

@noorejannat
Copy link
Collaborator

Weighted chains

The default behavior of a chain is to spread the elements equally in the available space. If one or more elements are using MATCH_CONSTRAINT, they will use the available empty space (equally divided among themselves). The attribute layout_constraintHorizontal_weight and layout_constraintVertical_weight will control how the space will be distributed among the elements using MATCH_CONSTRAINT. For exemple, on a chain containing two elements using MATCH_CONSTRAINT, with the first element using a weight of 2 and the second a weight of 1, the space occupied by the first element will be twice that of the second element.

@noorejannat noorejannat added enhancement New feature or request core Application core components labels May 27, 2018
@noorejannat noorejannat added this to the 1.0 milestone May 27, 2018
hossain-khan added a commit that referenced this issue May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Application core components enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant