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 Service开发应用实例

    Android Service开发应用实例

    Android的服务是开发Android应用程序的重要组成部分。不同于活动Activity,服务是在后台运行,服务没有接口,生命周期也与活动Activity非常不同。通过使用服务我们可以实现一些后台操作,比如想从远程服务器加载一个网页等,下面来看看详细内容,需要的朋友可以参考下
    2022-12-12
  • Android10 App启动Activity源码分析

    Android10 App启动Activity源码分析

    这篇文章主要为大家介绍了Android10 App启动Activity源码分析,有需要的朋友可以借鉴参考下,希望能够有所帮助,祝大家多多进步,早日升职加薪
    2022-10-10
  • 关于Android高德地图的简单开发实例代码(DEMO)

    关于Android高德地图的简单开发实例代码(DEMO)

    高德地图在日常生活中经常会用到,那么基于代码如何实现高德地图呢?下面小编给大家分享一个demo帮助大家学习android高德地图的简单开发,需要的朋友参考下
    2016-11-11
  • Android离线Doc文档访问速度慢的有效解决方法

    Android离线Doc文档访问速度慢的有效解决方法

    今天小编就为大家分享一篇关于Android离线Doc文档访问速度慢的有效解决方法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
    2019-03-03
  • Android Http协议访问网络实例(3种)

    Android Http协议访问网络实例(3种)

    本篇文章主要介绍了Android Http协议访问网络实例(3种),具有一定的参考价值,有兴趣的可以了解一下
    2017-07-07
  • Android QQ登录界面绘制代码

    Android QQ登录界面绘制代码

    这篇文章主要为大家详细介绍了Android QQ登录界面绘制代码,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
    2016-09-09
  • Android编程实现横竖屏切换时不销毁当前activity和锁定屏幕的方法

    Android编程实现横竖屏切换时不销毁当前activity和锁定屏幕的方法

    这篇文章主要介绍了Android编程实现横竖屏切换时不销毁当前activity和锁定屏幕的方法,涉及Android属性设置及activity操作的相关技巧,需要的朋友可以参考下
    2015-11-11
  • Android M(6.x)使用OkHttp包解析和发送JSON请求的教程

    Android 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示例详解

    这篇文章主要介绍了在Android环境下WebView中拦截所有请求并替换URL示例详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
    2020-07-07
  • Android中Spinner(下拉框)控件的使用详解

    Android中Spinner(下拉框)控件的使用详解

    这篇文章主要介绍了Android中Spinner(下拉框)控件的使用详解的相关资料,非常不错,具有参考借鉴价值,需要的朋友可以参考下
    2016-07-07

最新评论