在整个布局的最外层加 android:focusable="true" android:focusableInTouchMode="true" 这样,当触摸滑动的时候焦点就从EditText 抢过来了。