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
holder.image.setWebViewClient(new WebViewClient() {
boolean bReceivedError = false;
@Override
public void onReceivedError( WebView view, int errorCode,
String description, String failingUrl) {
bReceivedError = true;
view.setVisibility( View.GONE );
}
@Override
public void onPageFinished(WebView view, String url) {
if(!bReceivedError)
view.setVisibility( View.VISIBLE );
}
});