当前位置:网站首页>Use of constraintlayout
Use of constraintlayout
2022-07-03 14:27:00 【Novice Xiaowang】
1. Positioning position
The other side of the control and Align the other side of the control
- layout_constraintLeft_toLeftOf Align left and left
- layout_constraintLeft_toRightOf Align left and right
- layout_constraintRight_toLeftOf Align right and left
- layout_constraintRight_toRightOf
- layout_constraintTop_toTopOf
- layout_constraintTop_toBottomOf
- layout_constraintBottom_toTopOf
- layout_constraintBottom_toBottomOf
- layout_constraintBaseline_toBaselineOf
- layout_constraintStart_toEndOf
- layout_constraintStart_toStartOf
- layout_constraintEnd_toStartOf
- layout_constraintEnd_toEndOf

2. Align center
Simultaneous setting :
Horizontal center :
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"
Center vertically :
app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"
The offset
- layout_constraintHorizontal_bias Shift left and right Value range 0~1
- layout_constraintVertical_bias Up and down Value range 0~1
3.margin Set up
Use at the same time
android:layout_marginXXX="30dp" app:layout_constraintXXX_toBottomOf="@+id/insert"
边栏推荐
- Facebook 如何将 Instagram 从 AWS 搬到自己的服务器
- Leetcode(4)——寻找两个正序数组的中位数
- Although not necessarily the best, it must be the hardest!
- x86汇编语言-从实模式到保护模式 笔记
- Recent learning summary
- Programming language: the essence of type system
- SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
- 八大排序
- Sendmail无法发送邮件及发送过慢解决
- 一文了解微分段应用场景与实现机制
猜你喜欢

Exercise 10-8 recursive implementation of sequential output of integers

中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿

Exercise 10-3 recursive implementation of exponential functions

Four data flows and cases of grpc

Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them

Leetcode(4)——寻找两个正序数组的中位数

Exercise 8-7 string sorting

Exercise 6-6 use a function to output an integer in reverse order

x86汇编语言-从实模式到保护模式 笔记

Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
随机推荐
7-16 find the set of integers that meet the given conditions
protobuf与grpc
Zabbix添加Calculated items后保存页面成空白
7-14 sum integer segments (C language)
7-10 calculate salary
Statistical capital consonants
7-9 find a small ball with a balance
puzzle(016.4)多米诺效应
Exercise 10-2 recursive factorial sum
7-2 and then what time (15 minutes)
x86汇编语言-从实模式到保护模式 笔记
etcd集群权限管理和账号密码使用
Niuke: crossing the river
Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in
String substitution
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
fpga阻塞赋值和非阻塞赋值
7-19 check denomination (solve binary linear equation)
Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions
GRPC的四种数据流以及案例