EditView某些属性说明

android:autoText:to control if the field should provide automatic spelling assistance

android:capitalize:控制第一个字母为大写
android:digits:控制必须为某些数字
android:singleLine:当按回车不进行换行

当你想实现其他的某些限制,如输入必须为电话号码等,你可以实现InputMethod接口,然后在配置文件中配置android:inputMethod

你可能感兴趣的:(android)