通过将焦点设在WebView的父布局来解决了这个问题。
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true">
<WebView
android:id="@+id/web_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<include
android:id="@+id/progress_bar"
layout="@layout/progress_bar"/>
</FrameLayout>
此方案参考一个外国老哥的解决方案,亲自尝试有效