Android用户注册界面
更新时间:2016年03月30日 11:40:54 作者:Dreamer_lwp
这篇文章主要介绍了Android用户注册界面 的相关资料,需要的朋友可以参考下
推荐阅读: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欢迎提出,小编会及时和大家联系,共同学习进步!
相关文章
Android编程实现横竖屏切换时不销毁当前activity和锁定屏幕的方法
这篇文章主要介绍了Android编程实现横竖屏切换时不销毁当前activity和锁定屏幕的方法,涉及Android属性设置及activity操作的相关技巧,需要的朋友可以参考下2015-11-11Android M(6.x)使用OkHttp包解析和发送JSON请求的教程
Android 6.0采用的SPDY支持HTTP上GZIP压缩的传输,这使得OkHttp包的功能能够进一步被利用,本文我们来总结一下Android M(6.0)使用OkHttp包解析和发送JSON请求的教程2016-07-07在Android环境下WebView中拦截所有请求并替换URL示例详解
这篇文章主要介绍了在Android环境下WebView中拦截所有请求并替换URL示例详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧2020-07-07
最新评论