NestedScrollView 嵌套 WebView 有时候无法滑动?
这个可能是因为你的 WebVIew 的高度设置为match_parent 导致的,修改为wrap_content 即可解决问题!
修改之前
<WebView
android:id="@+id/web_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/dp_14"
android:layout_marginEnd="@dimen/dp_14"
android:scrollbars="none"
android:visibility="gone" />
修改之后
<WebView
android:id="@+id/web_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_14"
android:layout_marginEnd="@dimen/dp_14"
android:scrollbars="none"
android:visibility="gone" />