開(kāi)發(fā)中遇到一個(gè)問(wèn)題: webview 不能將網(wǎng)頁(yè)中的內(nèi)容全部顯示出來(lái)吗伤。
如圖:黑色為手機(jī)屏幕吃靠,紅色為url內(nèi)的全部?jī)?nèi)容。超出的紅色部分加載不出來(lái)牲芋。
image.png
布局中的
<WebView
app:layout_constraintTop_toBottomOf="@id/progress_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
android:id="@+id/webView">
</WebView>
沒(méi)有設(shè)置: app:layout_constraintBottom_toBottomOf="parent"