Android WebView不会在Chrome 78中呈现iframe内容
我们有一个带有iframe的html内容,加载在webview中。当使用chrome版本78时,内容将首先呈现第一段,然后在某个高度显示空白文本,有时甚至扭曲文本,直到底部 若要复制,请将webview放置在scrollview中并加载包含iframe标记的内容,webview不会加载所有内容Android WebView不会在Chrome 78中呈现iframe内容,android,webview,chromium,nestedscrollview,Android,Webview,Chromium,Nestedscrollview,我们有一个带有iframe的html内容,加载在webview中。当使用chrome版本78时,内容将首先呈现第一段,然后在某个高度显示空白文本,有时甚至扭曲文本,直到底部 若要复制,请将webview放置在scrollview中并加载包含iframe标记的内容,webview不会加载所有内容 <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/layoutHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="120dp"
android:src="@drawable/img_logo" />
</RelativeLayout>
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
为什么要使用NestedScrollView?您可以删除此scrollview父级,然后直接在布局中尝试WebView。@SudheeshR实际上在scrollview中有更多内容,因为我们还显示以WebView为内容的标题。编辑问题确定,使用用于加载url的webview设置更新问题。