加上android:singleLine=”true”和 android:inputType=”text”配合使用在项目清单文件的activity里面加上android:windowSoftInputMode=”adjustResize”