Webview的AsyncLayoutInflater

时间:2018-03-22 10:36:07

标签: android asynchronous android-webview layout-inflater

我试图在WebView中使用 AsyncLayoutInflater ,但后台线程的通胀失败了:

Failed to inflate resource in the background! Retrying on the UI thread
android.view.InflateException: Binary XML file line #6: Binary XML file line #6: Error inflating class android.webkit.WebView
Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class android.webkit.WebView

我认为这意味着WebView不能异步膨胀,因为它在内部使用了Handler,至少使用 AsyncLayoutInflater.

有什么方法吗?

0 个答案:

没有答案