Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.11 KB

File metadata and controls

31 lines (26 loc) · 1.11 KB

PerfectWebView

easy to use webview

just use MyWebView replace your Webview.

if you want to add loading progressbar,just use my_webview.setLoading(ProgressBar pb) but if you want to add loadingDialog instead of loading progressbar,just use my_webview.setLoadingDialog(ProgressDialog pd) replace if you want to set webview title,use my_webview.setMyTitle(TextView tv) if you want to handle error situation,just like

            @Override
            public void onNotNetError() {
                Log.i(TAG, "onNotNetError: ");
            }

            @Override
            public void onOtherError(int errorCode, String description, String failingUrl) {
                switch (errorCode){
                    // Not found
                    case ERROR_URL_NAME:
                        break;
                    // Internal server error
                    case ERROR_NAME_SOLVE:
                        break;
                    default:
                        break;
                }
            }
        }); ```