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
Labels
Milestone
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
The text was updated successfully, but these errors were encountered: