0.基本
1>.sp用作字体的size,dp用做宽高。
1.简单的代码布局
Screen Shot 2020-04-16 at 8.56.19 PM.png
2.xml布局基本属性
Screen Shot 2020-04-16 at 9.00.17 PM.png
1>.线性布局
WechatIMG1.jpeg
2>.相对布局
Screen Shot 2020-04-16 at 9.12.35 PM.png
Screen Shot 2020-04-16 at 9.18.07 PM.png
Screen Shot 2020-04-16 at 9.29.03 PM.png
3>.FrameLayout 帧布局,层布局
4>.TableLayout
stretchColumns=“*” 所有列都伸展,则等宽平分一行;
Screen Shot 2020-04-17 at 12.39.06 AM.png
Screen Shot 2020-04-17 at 12.43.41 AM.png
5>.网格布局
Screen Shot 2020-04-17 at 12.47.00 AM.png
6>.约束布局
<1>.基本布局属性
WechatIMG2.png
// 偏移0.5一般就是居中了
Screen Shot 2020-04-17 at 12.15.25 PM.png
<2>.inspector
WechatIMG3.jpeg
<3>.guideline
WechatIMG4.png
Screen Shot 2020-04-17 at 12.41.27 PM.png