zoukankan      html  css  js  c++  java
  • EditText inputType 介绍

    这是一篇关于Android EditText中的inputType详解,因为Android中inputType属性在EditText输入值时启动的虚拟键盘的风格有着重要的作用。这也大大的方便的操作。有时需要虚拟键盘只为字符或只为数字。所以inputType尤为重要。
      <EditText android:layout_width="fill_parent" android:layout_height="wrap_content"android:inputType="phone" />
      //文本类型,多为大写、小写和数字符号。
      android:inputType="none"
      android:inputType="text"
      android:inputType="textCapCharacters" 字母大写
      android:inputType="textCapWords" 首字母大写
      android:inputType="textCapSentences" 仅第一个字母大写
      android:inputType="textAutoCorrect" 自动完成
      android:inputType="textAutoComplete" 自动完成
      android:inputType="textMultiLine" 多行输入
      android:inputType="textImeMultiLine" 输入法多行(如果支持)
      android:inputType="textNoSuggestions" 不提示
      android:inputType="textUri" 网址
      android:inputType="textEmailAddress" 电子邮件地址
      android:inputType="textEmailSubject" 邮件主题
      android:inputType="textShortMessage" 短讯
      android:inputType="textLongMessage" 长信息
      android:inputType="textPersonName" 人名
      android:inputType="textPostalAddress" 地址
      android:inputType="textPassword" 密码
      android:inputType="textVisiblePassword" 可见密码
      android:inputType="textWebEditText" 作为网页表单的文本
      android:inputType="textFilter" 文本筛选过滤
      android:inputType="textPhonetic" 拼音输入 //数值类型
      android:inputType="number" 数字
      android:inputType="numberSigned" 带符号数字格式
      android:inputType="numberDecimal" 带小数点的浮点格式
      android:inputType="phone" 拨号键盘
      android:inputType="datetime" 时间日期
      android:inputType="date" 日期键盘
      android:inputType="time" 时间键盘

    转自:

    http://android.sunplusedu.com/answer/2013/0222/894.html

  • 相关阅读:
    JSP和Servlet的相同点和不同点、有何联系。
    Java泛型
    HttpURLConnection与HttpClient比较和使用示例
    Mybatis中的#和$的区别
    MySQL_第三方数据库引擎_tokudb
    mysql的并发处理机制_上篇
    SQL SERVER 自动生成 MySQL 表结构及索引 的建表SQL
    SQL SERVER大话存储结构(6)_数据库数据文件
    SQL SERVER大话存储结构(4)_复合索引与包含索引
    基于binlog来分析mysql的行记录修改情况(python脚本分析)
  • 原文地址:https://www.cnblogs.com/howarddeng/p/5370115.html
Copyright © 2011-2022 走看看