添加 如下代码到整个布局的根部即可 android:focusable="true"android:focusableInTouchMode="true" 转载于:https://www.cnblogs.com/haihai88/p/10870134.html