1.LinearLayout //线性布局
android:orientation="" //设置控件的排列方式 horizontal 垂直 vertical 水平
显示: ___【】 若改成
//edit_text会占满剩余屏幕
显示: __________【】
2.RelativeLayout //相对布局 在页面布局: android:layout_alignParentLeft+
android:layout_alignParen Top:左上 android:layout_alignParenRight+ android:layout_alignParen Bottom:右下 android:layout_centerInParent:居中 相对控件布局: //在button3右上 android:layout_above="@id/button3" android:layout_toRightOf="@id/button3" //
在button3左下 android:layout_below="@id/button3" android:layout_toLeftOf="@id/button3" //与button3左边缘对齐 android:layout_alignLeft="@id/button3" //与button3上端对齐 android:layout_alignTop="@id/button3"
3.TableLayout //表格布局 android:stretchColumns="1" //延伸第二格以填充空白 0表示第一格
> 显示: Account: ______________ Password:______________
【 login 】 2.各控件所占比例可通过 如weightSum="1"(总比例) 和 android:layout_weight="(内填比例)" 控制
- Android使用代码实现RelativeLayout,LinearLayout布局
- 在RelativeLayout布局中可以设置标签的android:layout_toLeftO..
- Android学习之表格布局管理器
- 【Android动态布局】之【使用addView方法时,如何保持已有动态控件
- 超酷的时间选择控件
- android 之 布局属性--RelativeLayout
- Android 动态设置布局属性
- Android布局管理器
- android中TextView和EditText控件一些属性
随机推荐
-
Android(安卓)常用样式设置
-
写在前面
-
Android中的布局管理
-
关于Edittext的一些事情
-
Android开发新手学习总结(一)——使用And
-
android EditText 属性
-
Android学习之文件存储
-
Android监听键盘弹出收起
-
关于华为P10(Android(安卓)8.0系统)出现
-
Android设置弹出键盘与View的交互方式[学