【发布时间】:2013-11-07 12:18:56
【问题描述】:
我在使用 Android 4.4 的 WebView 中遇到问题。在 KitKat 之前,文本会自动适应 web 视图中的所有设备分辨率。但是今天它不再自动适应 4.4。我认为这是因为基于 Chromium 和 KitKat 的 WebView 的更新。
这是同一页面的 2 个屏幕截图:
One from Galaxy Nexus (Android 4.3)
One from Nexus 5 (Android 4.4 and WebView based on Chromium)
你知道在 webview 中是否有一个新的选项可以让文本适应屏幕吗?
注意:我不认为我的布局与我的问题有关,但无论如何:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</RelativeLayout>
【问题讨论】:
-
你能分享你的html吗?看起来您可能没有设置视口。
标签: android webview android-4.4-kitkat