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 dimension constraints - percent #53

Closed
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

Percent dimension

To use percent, you need to set the following:
The dimension should be set to MATCH_CONSTRAINT (0dp)
The default should be set to percent app:layout_constraintWidth_default="percent" or app:layout_constraintHeight_default="percent"
(Note: this is necessary in 1.1-beta1 and 1.1-beta2, but will not be needed in following versions if the percent attribute is defined)
Then set the layout_constraintWidth_percent or layout_constraintHeight_percent attributes to a value between 0 and 1

@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 Apr 5, 2019
hossain-khan added a commit that referenced this issue Apr 5, 2019
[ADDED] [#53] Percent Dimension example.
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