找到布局文件中第一个EditText的父级控件或者根布局控件,为其添加以下属性: android:focusable="true" android:focusableInTouchMode="true"