用户友好的输入界面
2015-07-24 09:04
274 查看
Demo2\youhao\src\main\res\layout\activity_main.xml
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns="1" tools:context=".MainActivity"> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="用户名" android:textSize="16dp" /> <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="16dp" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请填写登录密码" android:inputType="numberPassword" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="年龄" android:textSize="16dp" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请填写年龄" android:inputType="number" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="生日" android:textSize="16dp" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请填写生日" android:inputType="date" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="电话号码" android:textSize="16dp" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请填写电话号码" android:inputType="phone" android:selectAllOnFocus="true" /> </TableRow> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="注册 " /> </TableLayout>
相关文章推荐
- 编写多线程代码时,启动线程后等待线程结束方法
- java中的单例设计模式简谈
- Android提高(17)——第一章 Http基础详解
- Effective C++ 学习记录
- centos6.5下postgresql9.4.3安装与配置
- PostgreSQL递归查询实现树状结构查询
- 在Eclipse中使用JSHint检查JavaScript
- 这不是互联网史,这是本互联网的败局小传
- QT中的.pro文件
- explicit
- 程序开发中的“用户”
- Subversion+Apache+svnmanager安装与配置
- ServletContext获取项目真实路径
- 把本地jar包发布到maven私服和本地maven库
- Python的Django框架中模板碎片缓存简介
- 用C语言操作MySQL数据库的通用方法
- 跨域资源共享(CORS)
- 我的博客搬家了,欢迎来玩
- MySQL数据库引擎介绍、区别、创建和性能测试的深入分析
- 深入理解Memcached原理