Code example for WebView

Methods: reload

0
 
        return root;
    } 
 
    public void refresh() { 
        mWebView.reload();
    } 
 
    private WebViewClient mWebViewClient = new WebViewClient() {
        @Override 
        public void onPageStarted(WebView view, String url, Bitmap favicon) { 
            super.onPageStarted(view, url, favicon); 
            mLoadingSpinner.setVisibility(View.VISIBLE); 
            mWebView.setVisibility(View.INVISIBLE); 
        } 
 
        @Override 
        public void onPageFinished(WebView view, String url) { 
            super.onPageFinished(view, url); 
            mLoadingSpinner.setVisibility(View.GONE); 
            mWebView.setVisibility(View.VISIBLE);