For ConstraintLayout, it seems percent(100f) refers to 100x the size of the parent? I reckon it should be renamed or changed a bit, since "percent" means "per one hundred"
s
Sinan Kozak
05/18/2020, 7:12 AM
float settings generally are between 0 and 1. It should be stated in documentation as well. But I agree name is confusing. API desing is hard. Rename iss probably not possible at this point, but you can create a typealias yourself
m
Mihai Popa
05/18/2020, 11:02 AM
The DSL of ConstraintLayout is very likely subject to be changed, we will address this in the next iterations 🙂
👍 1
🎉 2
💯 1
s
Sinan Kozak
05/18/2020, 11:24 AM
ohh I totally meant for ConstraintLayout xml api, DSL for compose is obviously something new 🤦🏻♂️