首页 > 移动平台 > 详细

android studio学习(一)

时间:2019-04-13 15:52:26      阅读:148      评论:0      收藏:0      [点我收藏+]
关于布局绝大部分使用线性布局相对布局
LinearLayout线性布局
android:id        标识,找到空间
"@+id/"
android:layout_width  宽度
android:layout_height  高度
match_parent 匹配副空间
dp 单位
android:background    背景
android:layout_margin  外边距
android:layout_padding  内边距
android:orientation    布局方向(垂直
vertical,水平horizontal
RelativeLayout相对布局
android:layout_toLeftOf        在...左

android:
layout_toRightOf        在...右
android:layout_alignBottom      
android:layout_alignParentBottom  在底部
android:layout_below         在...下 
 

 

android studio学习(一)

原文:https://www.cnblogs.com/sonofdemon/p/10701169.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!