1、设了单行属性android:singleLine="true"; 2、设了输入类型android:inputType="xxx"; 转载于:https://www.cnblogs.com/yht520/archive/2012/09/04/3589679.html