当前位置:网站首页>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
边栏推荐
- Mba-day6 logic - hypothetical reasoning exercises
- 使用zerotier让异地设备组局域网
- Excel·VBA数组冒泡排序函数
- HuggingFace
- 【leetcode】199. Right view of binary tree
- SWAT - Introduction to Samba web management tool
- Deploy jar package
- @valid,@Validated 的学习笔记
- Code implementation of general bubbling, selection, insertion, hill and quick sorting
- 部署jar包
猜你喜欢
使用 PHP PDO ODBC 示例的 Microsoft Access 数据库
/Can etc / shadow be cracked?
Visual Road (XII) detailed explanation of collection class
第六站神京门户-------手机号码的转换
Idea - indexing or scanning files to index every time you start
使用zerotier让异地设备组局域网
Source insight 4.0 FAQs
Swagger2 接口如何导入Postman
高价买来的课程,公开了!phper资料分享
Visualization Road (11) detailed explanation of Matplotlib color
随机推荐
Anaconda3 installation
Problems of class in C # and database connection
Code implementation of general bubbling, selection, insertion, hill and quick sorting
【leetcode】102. Sequence traversal of binary tree
@valid,@Validated 的学习笔记
Idea - indexing or scanning files to index every time you start
使用zerotier让异地设备组局域网
Source insight 4.0 FAQs
SQL Server cursor circular table data
Visual common drawing (V) scatter diagram
Alarm scene recognition
How to use JDBC callablestatement The wasnull () method is called to check whether the value of the last out parameter is SQL null
Introduction to neo4j authoritative guide, recommended by Qiu Bojun, Zhou Hongxiang, Hu Xiaofeng, Zhou Tao and other celebrities
一道有趣的阿里面试题
Visualization Road (11) detailed explanation of Matplotlib color
【leetcode】102.二叉树的层序遍历
SVN的使用:
Installing MySQL with CentOS / Linux
Download and installation steps of xshell + xftp
Xshell+Xftp 下载安装步骤