app:layout_constraintDimensionRatio="H,2:3"指的是 高:寬=2:3
app:layout_constraintDimensionRatio="W,2:3"指的是 寬:高=2:3
這里好像有點問題吧,后面的比例始終都是寬高比,沒有所謂的高:寬,一直都是寬:高,只是
app:layout_constraintDimensionRatio="H,2:3"是已知寬求高,已寬為基準求高
app:layout_constraintDimensionRatio="W,2:3"是已知高求寬,已高為基準就寬
約束布局ConstraintLayout看這一篇就夠了目錄 1.介紹 2.為什么要用ConstraintLayout 3.如何使用ConstraintLayout3.1 添加依賴3.2 相對定位3.3 角度定位3.4 邊距3.5...