How Show progress bar while loading webview load url in android
<p>I'm new for android app....</p>

<p>When using webview to show html pages,</p>

<p>there will be several seconds of blank page before it finished rendering.</p>

<p>For better user experience, is there a way to make it show a loading image during that several seconds?</p>

<h2>MainActivity.java</h2>

<pre><code>package com.example.gds.grocerydoorstep;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;


public class MainActivity extends AppCompatActivity {
    private WebView myWebView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        myWebView = (WebView)findViewById(R.id.webView);
        WebSettings webSettings = myWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        myWebView.loadUrl("http://google.com");
        myWebView.setWebViewClient(new WebViewClient());

    }
    public void onBackPressed() {
        if (myWebView.canGoBack()) {
            myWebView.goBack();
        } else {
            super.onBackPressed();
        }
    }


}
</code></pre>

<h2>activity_main.xml</h2>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"

    tools:context="com.example.gds.grocerydoorstep.MainActivity"&gt;

    &lt;WebView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/webView" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>