<?
xml version=
"1.0"
encoding=
"utf-8"
?>
android
:layout_width=
"match_parent"
android
:layout_height=
"match_parent"
>
<!-- 定义一个文本框,使用绝对定位 -->
<TextView
android
:layout_x=
"20dp"
android
:layout_y=
"20dp"
android
:layout_width=
"wrap_content"
android
:layout_height=
"wrap_content"
android
:text=
"用户名:"
/>
<!-- 定义一个文本编辑框,使用绝对定位 -->
<EditText
android
:layout_x=
"80dp"
android
:layout_y=
"15dp"
android
:layout_width=
"wrap_content"
android
:layout_height=
"wrap_content"
android
:width=
"200px"
/>
<!-- 定义一个文本框,使用绝对定位 -->
<TextView
android
:layout_x=
"20dp"
android
:layout_y=
"80dp"
android
:layout_width=
"wrap_content"
android
:layout_height=
"wrap_content"
android
:text=
"密 码:"
/>
<!-- 定义一个文本编辑框,使用绝对定位 -->
<EditText
android
:layout_x=
"80dp"
android
:layout_y=
"75dp"
android
:layout_width=
"wrap_content"
android
:layout_height=
"wrap_content"
android
:width=
"200px"
android
:inputType=
"textPassword"
/>
<!-- 定义一个按钮,使用绝对定位 -->
<Button
android
:layout_x=
"130dp"
android
:layout_y=
"135dp"
android
:text=
"登 录"
android
:layout_width=
"wrap_content"
android
:layout_height=
"wrap_content"
/>
</AbsoluteLayout>