Android笔记:线性布局和相对布局RelativeLayout

线性布局

layout_width  宽度  wrap_content  内容有多少,宽度有多少

         match_parent  匹配父空间

layout_height  高度

layout_weight  权重  

orientation  布局(线性布局独有) vertical  垂直

            horizontal  水平

background  背景

padding  内边距

margin  外边距

gravity 对齐方式  bottom、right、center、center_vertical等

 

相对布局

layout_toLeftOf  相对左

layout_toRightOf  相对右

layout_layout_below  相对下

layout_alignBottom  底部对齐

layout_alignParentBottom  和父空间底部对齐

 

上一篇:IIS 使用域账户访问SQL 需要配置


下一篇:CSS(高级技巧)