当前位置:网站首页>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
边栏推荐
- Google Earth engine (GEE) - scale up the original image (taking Hainan as an example)
- Data analysis learning (I) data analysis and numpy Foundation
- CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
- MBA - day5 mathématiques - Questions d'application - Questions d'ingénierie
- Notes on concurrent programming of vegetables (V) thread safety and lock solution
- Jinglianwen technology - professional data annotation company and intelligent data annotation platform
- Typora operation skill description (I) md
- Visualization Road (10) detailed explanation of segmentation canvas function
- VIM usage
- Let the LAN group use the remote device
猜你喜欢

【leetcode】199. Right view of binary tree

ID number verification system based on visual structure - Raspberry implementation

语雀文档编辑器将开源:始于但不止于Markdown

Visual common drawing (III) area map

一道有趣的阿里面试题

Excel·VBA数组冒泡排序函数

CUMCM 2021-B:乙醇偶合制备C4烯烃(2)

C language - custom type

Example of pop-up task progress bar function based on pyqt5

数据库管理软件SQLPro for SQLite for Mac 2022.30
随机推荐
Is the pointer symbol of C language close to variable type or variable name?
Code implementation of general bubbling, selection, insertion, hill and quick sorting
Example of pop-up task progress bar function based on pyqt5
Swagger2 接口如何导入Postman
【leetcode】107.二叉树的层序遍历II
Arbitrary file reading vulnerability exploitation Guide
Read integrity monitoring techniques for vision navigation systems - 4 multiple faults in vision system
Promise详解
语雀文档编辑器将开源:始于但不止于Markdown
UEditor之——图片上传组件大小4M的限制
Pycharm
全栈交叉编译X86完成过程经验分享
Manjaro installation and configuration (vscode, wechat, beautification, input method)
Kaggle - real battle of house price prediction
得到知识服务app原型设计比较与实践
SQL Server 游标循环表数据
SQL Server recursive query of superior and subordinate
如何使用JDBC CallableStatement.wasNull()方法调用来查看最后一个OUT参数的值是否为 SQL NULL
26. 删除有序数组中的重复项
Excel·VBA数组冒泡排序函数