Android WebViewClient onReceivedError is not called for a 404 error

前端 未结 5 2162
不知归路
不知归路 2021-02-19 10:57

hi
In a list view i have an webview which should load a image file from the server,when there is no image present i need a dummy image .I tried

holder.imag         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 11:34

    That code looks correct; is it possible that your page is not generating a 404 error?

提交回复
热议问题