我在使用 Android 4.4 的 WebView 中遇到问题。在 KitKat 之前,文本会自动适应 web 视图中的所有设备分辨率。但是今天它不再自动适应 4.4。我认为这是因为基于 Chromium 和 KitKat 的 WebView 的更新。
这是同一页面的2个屏幕截图:
来自 Galaxy Nexus (Android 4.3) 的一款
来自 Nexus 5 的一个(Android 4.4 和基于 Chromium 的 WebView)
您知道是否有一个新选项可以在 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>