Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使屏幕在 8.0/8.1 之前的 android 版本上关闭,WebView 也能成功呈现 html 页面,但在 Android 8.1 上却没有。我想知道为什么?也许有人可以给我一个提示,我该如何影响这种行为。
任何帮助将不胜感激!
可能,WebSettings.setOffscreenPreRaster(true)这就是你要找的。
WebSettings.setOffscreenPreRaster(true)