Android用户注册界面
程序员文章站
2024-02-28 21:28:22
推荐阅读:android如何通过手机获取验证码来完成注册功能
先给大家展示下界面效果图,感觉满意,请参考实现代码。
main.xml源码
...
推荐阅读: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>
到此关于android用户注册界面的全部代码就给大家介绍完了,代码有bug欢迎提出,小编会及时和大家联系,共同学习进步!