我试图在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.
有什么方法吗?