在父窗口添加: android:focusable="true" android:focusableInTouchMode="true" 参考: https://blog.csdn.net/juvary/article/details/80151358