标签:
android注册页面
页面效果图
Main.xml源码
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="1"
android:background="@drawable/bluesky"
>
<!-- 账号 -->
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="账号:"
android:textSize="16sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="手机号"
android:selectAllOnFocus="true"
/>
</TableRow>
<!-- 密码 -->
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="密码:"
android:textSize="16sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberPassword"
/>
</TableRow>
<!-- 生日 -->
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="生日:"
android:textSize="16sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="date"
/>
</TableRow>
<!-- 住址 -->
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="住址:"
android:textSize="16sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPostalAddress"
/>
</TableRow>
<!-- 电子邮箱 -->
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="电子邮箱:"
android:textSize="16sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
/>
</TableRow>
<!-- 注册 -->
<TableRow>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="注册"
/>
</TableRow>
</TableLayout>
标签:
原文地址:http://www.cnblogs.com/Dreamer-lwp/p/5334677.html