当前位置:网站首页>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
边栏推荐
- PlatoFarm推出正式版游戏经济模型的特点分析
- Solutions to common problems in visualization (IX) background color
- 学习网站资料
- Leetcode22: bracket generation
- Ueditor -- limitation of 4m size of image upload component
- Reading integrity monitoring techniques for vision navigation systems - 5 Results
- Visual common drawing (III) area map
- Understand the key points of complement
- Hikvision face to face summary
- Introduction to wechat applet, development history, advantages of applet, application account, development tools, initial knowledge of wxml file and wxss file
猜你喜欢

MySQL how to merge the same data in the same table

Manjaro installation and configuration (vscode, wechat, beautification, input method)

Introduction to neo4j authoritative guide, recommended by Qiu Bojun, Zhou Hongxiang, Hu Xiaofeng, Zhou Tao and other celebrities

Xshell+Xftp 下载安装步骤

Visual solutions to common problems (VIII) mathematical formulas

C语言之结构体(进阶篇)

Comparison and practice of prototype design of knowledge service app

Visual Road (XII) detailed explanation of collection class

Let the LAN group use the remote device

比深度学习更值得信赖的模型ART
随机推荐
VIM + ctags + cscope development environment construction guide
Go interface usage
Visualization Road (10) detailed explanation of segmentation canvas function
Source insight 4.0 FAQs
Alarm scene recognition
【leetcode】199.二叉树的右视图
Introduction to neo4j authoritative guide, recommended by Qiu Bojun, Zhou Hongxiang, Hu Xiaofeng, Zhou Tao and other celebrities
Deploy jar package
Typora operation skill description (I)
Notes on concurrent programming of vegetables (IX) asynchronous IO to realize concurrent crawler acceleration
web三大组件(Servlet,Filter,Listener)
Mba-day6 logic - hypothetical reasoning exercises
Simple thoughts on the design of a microblog database
【leetcode】199. Right view of binary tree
Which company is good for opening futures accounts? Who can recommend several safe and reliable futures companies?
我的创作纪念日
闹钟场景识别
Special members and magic methods
How to Ping Baidu development board
How to use JDBC callablestatement The wasnull () method is called to check whether the value of the last out parameter is SQL null