相对定位 :
//Left , Right 全排列 组合成的 四种 属性
layout_constraintLeft_toLeftOf
layout_constraintLeft_toRightOf
layout_constraintRight_toLeftOf
layout_constraintRight_toRightOf
//Start , End 全排列 组合成的 四种 属性
layout_constraintStart_toEndOf
layout_constraintStart_toStartOf
layout_constraintEnd_toStartOf
layout_constraintEnd_toEndOf
//Top , Bottom 全排列 组成的 四种属性 ;
layout_constraintTop_toTopOf
layout_constraintTop_toBottomOf
layout_constraintBottom_toTopOf
layout_constraintBottom_toBottomOf
//Text BaseLine 基线约束 一个 属性 ;
layout_constraintBaseline_toBaselineOf
相对定位 属性 组合 前提 : 以 水平方向的 Left , Right 为例 ;
相对定位 属性 四种组合 :
相对定位 属性 四种组合 :
相对定位 属性 四种组合 :
设置相对位置约束后 :
要想用好约束布局 , 一定要精通其中的各种细节 ;
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有