android第一天
来源:互联网 发布:c语言if else语句例子 编辑:程序博客网 时间:2024/06/03 22:48
RelativeLayout(相对布局)
:layout/activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/tvUser"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用户名:"
android:layout_marginTop="15dp"
android:textSize="20dp"/>
<EditText
android:id="@+id/etUser"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入1-10字符"
android:layout_toRightOf="@id/tvUser"
android:layout_alignBaseline="@id/tvUser"
android:layout_marginTop="15dp"/>
<TextView
android:id="@+id/tvPass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密 码:"
android:layout_below="@id/etUser"
android:textSize="20dp"
android:layout_marginTop="5dp"/>
<EditText
android:id="@+id/etPass"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入1-10字符"
android:layout_toRightOf="@id/tvPass"
android:layout_alignBaseline="@id/tvPass"
android:layout_below="@id/etPass"
android:layout_marginTop="5dp"
/>
</RelativeLayout>
效果:
- Android的第一天
- Android第一天
- Android学习第一天
- android学习第一天
- Android第一天
- Android 布局第一天
- android 第一天课程
- android培训第一天
- android入门第一天
- android第一天
- Android学习第一天
- Android 开发第一天
- Android学习第一天
- Android开发第一天
- Android 学习第一天
- android自学第一天。
- android第一天
- Android 学习第一天
- 前端编程提高之旅(九)----延迟对象
- 快递员高收入背后 - 月薪过万?快递员到底挣多少钱?
- HDU 2433(Travel) 最短路问题(SPFA)
- 某瘤最新dizhi.1024haoren.
- 第十二周项目3--求n的阶乘
- android第一天
- 二维数组批量改变单元格里面的商品价格
- windows 下配置eAccelerator php缓存机制
- C# 图片和二进制之间的转换
- pl*sql基础(一)
- server 2008 R2 错误ID 1308
- 超声波技术在包装工业的应用
- 关于C++的成员函数调用
- 阅读程序(2)---全局变量