当前位置:网站首页>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"
边栏推荐
- Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
- 修改数据库中的记录为什么报这个错
- Preliminary summary of structure
- 泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
- 关于回溯问题中的排列问题的思考(LeetCode46题与47题)
- Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)
- Doris学习笔记之数据表的创建
- 中国PETG市场预测及战略研究报告(2022版)
- puzzle(016.3)千丝万缕
- J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
猜你喜欢
Four data flows and cases of grpc
一文了解微分段应用场景与实现机制
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库
使用并行可微模拟加速策略学习
7-10 calculate salary
Solution to failure or slow downloading of electron when electron uses electron builder to package
GRPC的四种数据流以及案例
必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
[clean up the extraordinary image of Disk C]
随机推荐
J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
关于回溯问题中的排列问题的思考(LeetCode46题与47题)
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
Interface for querying IP home
Common commands for getting started with mongodb database
Sendmail can't send mail and it's too slow to send. Solve it
Why is this error reported when modifying records in the database
Recent learning summary
PCB中常用快捷键
protobuf与grpc
Find the sum of the elements of each row of the matrix
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions
中国PETG市场预测及战略研究报告(2022版)
使用并行可微模拟加速策略学习
Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块
Thread. Sleep and timeunit SECONDS. The difference between sleep
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Exercise 9-3 plane vector addition
LNMP环境mail函数不能发送邮件解决