当前位置:网站首页>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
边栏推荐
- Swagger2 自定义参数注解如何不显示
- Mba-day5 Mathematics - application problems - engineering problems
- Arbitrary file reading vulnerability exploitation Guide
- App. In wechat applet JS files, components, APIs
- SQL Server 游标循环表数据
- 【leetcode】107.二叉树的层序遍历II
- @valid,@Validated 的学习笔记
- 26. 删除有序数组中的重复项
- Charles function introduction and use tutorial
- SQL Server 递归查询上下级
猜你喜欢
Learning Notes 6 - Summary of several deep learning convolutional neural networks
C语言之结构体(进阶篇)
Charles function introduction and use tutorial
高价买来的课程,公开了!phper资料分享
UEditor之——图片上传组件大小4M的限制
Reading integrity monitoring techniques for vision navigation systems - 5 Results
Visualization Road (10) detailed explanation of segmentation canvas function
Go interface usage
Introduction to neo4j authoritative guide, recommended by Qiu Bojun, Zhou Hongxiang, Hu Xiaofeng, Zhou Tao and other celebrities
Wonderful review | deepnova x iceberg meetup online "building a real-time data Lake based on iceberg"
随机推荐
Pycharm
Visualization Road (10) detailed explanation of segmentation canvas function
Visual solutions to common problems (VIII) mathematical formulas
26. 删除有序数组中的重复项
图像处理——噪声小记
Software testers, how to mention bugs?
Jinglianwen technology - professional data annotation company and intelligent data annotation platform
MBA - day5 mathématiques - Questions d'application - Questions d'ingénierie
Restful、SOAP、RPC、SOA、微服务之间的区别
Let the LAN group use the remote device
Full stack cross compilation x86 completion process experience sharing
主流手机分辨率与尺寸
Mba-day5 Mathematics - application problems - engineering problems
数据库管理软件SQLPro for SQLite for Mac 2022.30
STM32接电机驱动,杜邦线供电,然后反烧问题
Hikvision face to face summary
Visual common drawing (V) scatter diagram
Notes on concurrent programming of vegetables (IX) asynchronous IO to realize concurrent crawler acceleration
Alarm scene recognition
Chapter 1 of technical Xiaobai (express yourself)