WebView:WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING:在Android 4.4以下吗? [英] WebView : WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING : Below Android 4.4?
问题描述
webview设置的WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING
属性是否向后兼容(在API级别19中引入)? ( http://developer.android.com/reference/android/webkit/WebSettings.LayoutAlgorithm.html )
我尝试过此操作( https://github.com/pwnall/chromeview/tree/master/src/org/chromium/android_webview ),但没有用.
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.
我需要WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING
高于4.0 API级别.
I need WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING
above 4.0 API level.
推荐答案
否,在KitKat WebView中添加了TEXT_AUTOSIZING,在早期版本中很难模仿.您可以尝试人行横道,尽管看起来他们并不将此设置公开为设置,所以它取决于哪种布局算法设置为默认设置.
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.
这篇关于WebView:WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING:在Android 4.4以下吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!