当前位置:网站首页>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"
边栏推荐
- Protobuf and grpc
- 天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库
- protobuf与grpc
- Sendmail can't send mail and it's too slow to send. Solve it
- Strategy, tactics (and OKR)
- 7-28 monkeys choose King (Joseph problem)
- Zabbix添加Calculated items后保存页面成空白
- 基因家族特征分析 - 染色体定位分析
- Too many files with unapproved license
- String substitution
猜你喜欢

Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions

编程语言:类型系统的本质

Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder

Happy capital new dual currency fund nearly 4billion yuan completed its first account closing

八大排序

GRPC的四种数据流以及案例

牛客网:过河卒

NPM install is stuck with various strange errors of node NPY

Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值

Doris学习笔记之数据表的创建
随机推荐
LNMP环境mail函数不能发送邮件解决
7-16 find the set of integers that meet the given conditions
Canvas utility library fabric JS user manual
Eight sorts
别再问自己适不适合做软件测试了
JS shift operators (< <,> > and > > >)
Exercise 8-7 string sorting
Four data flows and cases of grpc
How to bold text in AI
Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion
7-15 calculation of PI
7-6 mixed type data format input
7-22 tortoise and rabbit race (result oriented)
八大排序
Accelerating strategy learning using parallel differentiable simulation
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
Doris学习笔记之数据表的创建
puzzle(016.4)多米诺效应
7-19 check denomination (solve binary linear equation)
Puzzle (016.3) is inextricably linked