当前位置:网站首页>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)
- SSH uses private key to connect to server without key
- MBA-day6 逻辑学-假言推理练习题
- Resolution and size of mainstream mobile phones
- Kaggle - real battle of house price prediction
- Derivation and regularization
- 全栈交叉编译X86完成过程经验分享
- Notes on concurrent programming of vegetables (V) thread safety and lock solution
- Comparison and practice of prototype design of knowledge service app
- UDP basic learning
猜你喜欢

Solutions to common problems in visualization (VIII) solutions to problems in shared drawing area

Deploy jar package

C language - custom type

Swagger2 接口如何导入Postman

STM32接电机驱动,杜邦线供电,然后反烧问题

Cve-2019-0708 vulnerability exploitation of secondary vocational network security 2022 national competition

【leetcode】199.二叉树的右视图

Visual common drawing (V) scatter diagram

Reading integrity monitoring techniques for vision navigation systems - 5 Results

A diary of dishes | 238 Product of arrays other than itself
随机推荐
Introduction to neo4j authoritative guide, recommended by Qiu Bojun, Zhou Hongxiang, Hu Xiaofeng, Zhou Tao and other celebrities
How to use JDBC callablestatement The wasnull () method is called to check whether the value of the last out parameter is SQL null
@valid,@Validated 的学习笔记
Excel·VBA数组冒泡排序函数
Typora operation skill description (I) md
Dirichlet prefix sum (number theory optimization formula sub complexity weapon)
JDBC – PreparedStatement – 如何设置 Null 值?
Manjaro installation and configuration (vscode, wechat, beautification, input method)
How to quickly download vscode
Is the pointer symbol of C language close to variable type or variable name?
【leetcode】102.二叉树的层序遍历
Example of pop-up task progress bar function based on pyqt5
Chapter 120 SQL function round
Download and installation steps of xshell + xftp
HuggingFace
《Neo4j权威指南》简介,求伯君、周鸿袆、胡晓峰、周涛等大咖隆重推荐
VIM usage
全栈交叉编译X86完成过程经验分享
Comparison and practice of prototype design of knowledge service app
JVM - common parameters