常用方法總結(jié)
layout_constraintTop_toTopOf // 將所需視圖的頂部與另一個視圖的頂部對齊条霜。
layout_constraintTop_toBottomOf // 將所需視圖的頂部與另一個視圖的底部對齊。
layout_constraintBottom_toTopOf // 將所需視圖的底部與另一個視圖的頂部對齊碌尔。
layout_constraintBottom_toBottomOf // 將所需視圖的底部與另一個視圖的底部對齊媒吗。
layout_constraintLeft_toTopOf // 將所需視圖的左側(cè)與另一個視圖的頂部對齊念搬。
layout_constraintLeft_toBottomOf // 將所需視圖的左側(cè)與另一個視圖的底部對齊瓷产。
layout_constraintLeft_toLeftOf // 將所需視圖的左邊與另一個視圖的左邊對齊。
layout_constraintLeft_toRightOf // 將所需視圖的左邊與另一個視圖的右邊對齊按摘。
layout_constraintRight_toTopOf // 將所需視圖的右對齊到另一個視圖的頂部包券。
layout_constraintRight_toBottomOf // 將所需視圖的右對齊到另一個的底部。
layout_constraintRight_toLeftOf // 將所需視圖的右邊與另一個視圖的左邊對齊炫贤。
layout_constraintRight_toRightOf // 將所需視圖的右邊與另一個視圖的右邊對齊兴使。
chains Style(chains 樣式)
提供了三種默認(rèn)的樣式:spread、packed照激、spread_inside
spread樣式:
spread_inside樣式:
包含weight屬性的chain
packed樣式
有bias的packed樣式