当前位置:网站首页>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"
边栏推荐
- 7-11 calculation of residential water charges by sections
- 7-20 print 99 formula table (format output)
- Preliminary summary of structure
- Understanding of closures
- X86 assembly language - Notes from real mode to protected mode
- 数学常数表 by q779
- Add ZABBIX calculation type itemcalculated items
- pyQt界面制作(登录+跳转页面)
- MongoDB数据库入门的常用命令
- 关于敏捷的一些概念
猜你喜欢

GRPC的四种数据流以及案例

Interface for querying IP home

concat和concat_ws()区别及group_concat()和repeat()函数的使用

Exercise 10-8 recursive implementation of sequential output of integers

Eight sorts

Understand the application scenario and implementation mechanism of differential segment

Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in

基因家族特征分析 - 染色体定位分析

7-9 find a small ball with a balance

Doris学习笔记之数据表的创建
随机推荐
Paper sharing: generating playful palettes from images
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
7-9 find a small ball with a balance
[clean up the extraordinary image of Disk C]
Exercise 10-8 recursive implementation of sequential output of integers
Exercise 6-1 classify and count the number of characters
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
FPGA blocking assignment and non blocking assignment
Exercise 9-1 time conversion
超简单手机地图开发
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
Why is this error reported when modifying records in the database
Stop asking yourself if you are suitable for software testing
Raft 协议
Mysql多表查询 #子查询
Canvas utility library fabric JS user manual
556. The next larger element III
Sendmail can't send mail and it's too slow to send. Solve it
Doris学习笔记之数据表的创建
Why don't I have a rookie medal