title: Android:Display a temp image while page loading
body: <p>I am trying to display image before the page is fully loaded in a webView but the webview is displaying blank for few moment and then displaying the desided page the amount of time its showing blank screen i want to display some image.I am using webview inside viewpager.</p>
  
  <p>i have tried onPageStarted,onPageFinished method but without any success.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>       web.setWebViewClient(new WebViewClient() {
                      // load url
                      public boolean shouldOverrideUrlLoading(WebView view, String url) {
                          view.loadUrl(url);
                          return true;
                      }
  
                      // when finish loading page
                      public void onPageFinished(WebView view, String url) {
                          web.setVisibility(View.VISIBLE);
                          image.setVisibility(View.GONE);
                      }
                  });
  </code></pre>
  
  <p></p>
  
  <pre><code>                    &lt;ImageView
                          android:id="@+id/imageviewloading"
                          android:layout_width="wrap_content"
                          android:layout_height="0dip"
                          android:layout_gravity="center"
                          android:layout_weight="1"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/photo_downloading" /&gt;
  
                      &lt;WebView
                          android:id="@+id/website"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:visibility="gone" /&gt;
                  &lt;/LinearLayout&gt;
  </code></pre>