WebView : WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING : Below Android 4.4?

为君一笑 提交于 2019-12-24 04:53:13

问题


Is there backward compatibility for WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING property of webview's settings (Introduced in API level 19)? (http://developer.android.com/reference/android/webkit/WebSettings.LayoutAlgorithm.html) I tried this (https://github.com/pwnall/chromeview/tree/master/src/org/chromium/android_webview) but not useful.

I need WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING above 4.0 API level.


回答1:


No, TEXT_AUTOSIZING was added in the KitKat WebView and would be rather hard to emulate in earlier versions. You could try Crosswalk, although it doesn't look like they expose this as a setting so it depends on which layout algorithm is set as their default.



来源:https://stackoverflow.com/questions/27248081/webview-websettings-layoutalgorithm-text-autosizing-below-android-4-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!