当前位置:网站首页>Constraintlayout layout
Constraintlayout layout
2022-04-23 11:00:00 【Tenero-Forever】
- stay API9 The above Android Used in the operating system , It is mainly to solve the problem of too many nested layouts , Position and adjust widgets in a flexible way .
- from Android2.3 rise , The official template uses constraint layout by default
- constraintLayout and RelaiveLaout similar , Adopt the layout mode of relative positioning .
- More flexibility in constrained layout , And the spatial position and size can be constrained according to the scale , It can better adapt to models with different screen sizes
Baseline positioning
Text baseline , Text alignment
Two textview If the space height is inconsistent, you can use baseline positioning to align the text
Angular positioning
Margin positioning
stay ConstraintLayout Inside to achieve margin positioning , You must first constrain the position of the corresponding control in the constrained layout , Otherwise it will not take effect (margin The layout is only applicable to the view Work )
Chain positioning
The controls in the constraint layout are arranged like a chain , Each link in the chain is a control .
版权声明
本文为[Tenero-Forever]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231058008290.html
边栏推荐
- The courses bought at a high price are open! PHPer data sharing
- Reading integrity monitoring techniques for vision navigation systems - 5 Results
- web三大组件(Servlet,Filter,Listener)
- Let the LAN group use the remote device
- 得到知识服务app原型设计比较与实践
- SQL Server recursive query of superior and subordinate
- 【leetcode】199. Right view of binary tree
- Google Earth engine (GEE) - scale up the original image (taking Hainan as an example)
- Chapter 1 of technical Xiaobai (express yourself)
- 全栈交叉编译X86完成过程经验分享
猜你喜欢
The courses bought at a high price are open! PHPer data sharing
SQL Server cursor circular table data
解决方案架构师的小锦囊 - 架构图的 5 种类型
Visual common drawing (I) stacking diagram
How to quickly download vscode
MySQL how to merge the same data in the same table
Xshell+Xftp 下载安装步骤
UEditor之——图片上传组件大小4M的限制
VIM + ctags + cscope development environment construction guide
Example of pop-up task progress bar function based on pyqt5
随机推荐
CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
Problems of class in C # and database connection
Excel·VBA数组冒泡排序函数
Pycharm
Jinglianwen technology - professional data annotation company and intelligent data annotation platform
Swagger2 自定义参数注解如何不显示
主流手机分辨率与尺寸
Visual common drawing (III) area map
Learning Notes 6 - Summary of several deep learning convolutional neural networks
Dirichlet prefix sum (number theory optimization formula sub complexity weapon)
任意文件读取漏洞 利用指南
MBA-day5数学-应用题-工程问题
The difference between restful and soap
最强日期正则表达式
PlatoFarm推出正式版游戏经济模型的特点分析
Full stack cross compilation x86 completion process experience sharing
vm设置静态虚拟机
C语言之结构体(进阶篇)
Is the pointer symbol of C language close to variable type or variable name?
Visual solutions to common problems (VIII) mathematical formulas