其中一个方法:
<View android:id="@+id/default_focused_view" android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true" />
在edittext前面加这么一段就可以了,主要是红色代码起作用。