xml中直接设置属性输入类型只能为数字android:inputType="number"但是这种无法再次输入其他类型解决方法:mEditText.setRawInputType(InputType.TYPE_CLASS_NUMBER);
原创
2017-07-25 13:36:16
119阅读
一、TextView
文本框组件,直接继承View,也是EditText和Button的父类
[table]
|android:hint|setHint(int)|默认显示的提示文本|
|android:inputType|setRawInputType(int)|类似于HTML中input的type属性|
|android:linksClick