android:inputType="number|phone",表示指定为数字或电话
inputtype类型如下:
//文本类型,多为大写、小写和数字符号。
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"//时间键盘
分享到:
相关推荐
修改EditText的hint,主要为hint的字体大小的修改。
Android实现 点击EditText编辑框清除hint预设字 的功能实现Demo。
A set of input widgets with a hint label that floats when input is not empty. Demo A demo of the widget is worth a thousand words. You can download it for free on Google Play. We also have a small ...
1、第一种方式是通过EditText的inputType来实现,可以通过xml或者Java文件来设置。假如我要设置为显示密码的形式,可以像下面这样设置: 在xml中 Android:inputType=textPassword 在java文件中,可以用 ...
本文总结分析了Android编程开发之EditText中inputType属性。分享给大家供大家参考,具体如下: android 1.5以后添加了软件虚拟键盘的功能,所以在输入提示中将会有对应的软键盘模式。 android中inputType属性在...
简单的实现了EditText聚焦时hint消失,很好用的方法,也很实用
EditTextInputType.java 代码中 动态 设置EditText Inputtype 属性。
AutosizeEditText for Android is an extension of native EditText that offer a smooth auto scale text size. Latest Version How to use Configuring your project dependencies Add the library dependency ...
带账号输入格式化的EditText
PinEntryEditText for Android This repository contains PinEntryEditText ...Lets you specify any unicode character to be used as a mask for input. Specify drawable as the foreground/background. Usage Bel
Android-Prefix-Input 为EditText添加prefix 前缀模式
IconEditText provides a reusable view for displaying an ImageView with an EditText for Android 4.0 . Usage Using the IconEditText is easy enough, just clone the repo and add it to your project as ...
android edittext不弹出软键盘三种方法“: 方法一: 在AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为adjustUnspecified|stateHidden 例如: android:label="@string/app_name" ...
android:editable is deprecated: Use an <EditText> to make it editable android:editable is deprecated: Use inputType instead 分析:关于EditText控件的read-only问题,即: 无法通过UI更改其中的内容, 但可以...
开源一个EditText的轮播动画效果.rar,太多无法一一验证是否可用,程序如果跑不起来需要自调,部分代码功能进行参考学习。
android:inputType: Preferred "textNoSuggestions" (If you want text) or "number" (If you want only number) app:pinSpace: Space between each pin (Default: 16dp) app:pinHeight: Height of each pin ...
EditText跟随键盘弹出,背景不动,EditText跟随键盘弹出,背景不动EditText跟随键盘弹出,背景不动
学习有关Android EditText属性
EditDrawableText - An EditText which makes your Drawable Clickable.zip,EditDrawableText - An EditText which makes your Drawable Clickable