day1
LinearLayout 线性布局
android:layout_width="match_parent"-布局宽度
android:layout_height="0dp"-布局高度
android:gravity="center"居中方式:
center_vertical-垂直居中,center_horizontal-水平居中;
android:orientation="vertical"线性布局 vertical-垂直
horizontal-水平
android:textColor="@color/btnColor"-设置颜色
android:textSize=20db -设置字体大小
android:text="按钮"-设置内容
android:background="@drawable/blockbg_big"-设置背景图片
android:id="@+id/imageView"-设置标签id属性
day2
TableLayout 表格布局
<TableLayout>
<TableRow 属性列表></TableRow>-可以多个TableRow
</TableLayout>
day3
RelativeLayout 相对布局
android:layout_alignLeft="@id/imageView"-布局左对齐相对于那个控件对齐
android:layout_marginLeft="20dp"-左边边距
android:layout_toRightOf="@id/imageView"-右边布局
android:layout_centerInParent="true"-中心布局(显示在相对布局的中心位置)
day4
LisetView
android:divider="@drawable/img1"-分割器图片 可用颜色,或者drawale
android:dividerHeight-分割器高度
android:entries="@array/item"-属性为引用具体的数组资源;数组资源在res->values->stings中
Spinner 下拉列表框
<Spinner
android:entries="@array/数组名称">
</spinner>