title: ProgressBar in android webview not stop spinning
body: <p>i'm creating a android webview app. Im facing a problem with progress bar. The progress bar is completely and fully implemented and keeps spinning. but it doesn't stop spinning even after the page loads completely. what should i do?</p>
  
  <p>main activity layout::::   </p>
  
  <pre><code>&lt;ProgressBar android:id="@+id/progressBar" 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" 
          android:layout_gravity="center" /&gt;
  </code></pre>
  
  <p>mainActivity.java:::      </p>
  
  <pre><code> public class MainActivity extends ActionBarActivity {
  WebView web;
  ProgressBar progressBar;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      web = (WebView) findViewById(R.id.webView1);
      progressBar = (ProgressBar) findViewById(R.id.progressBar);
      web.getSettings().setJavaScriptEnabled(true);
      web.getSettings().setBuiltInZoomControls(true);
      web.loadUrl("http://google.com");
      web.setWebViewClient(new WebViewClient());   }
  
  public class webclient extends WebViewClient   {
  @Override
  public boolean shouldOverrideUrlLoading(WebView view, String url) {
      // TODO Auto-generated method stub
      view.loadUrl(url);
      return true;
  }
  
  @Override
  public void onPageStarted(WebView view, String url, Bitmap favicon) {
      // TODO Auto-generated method stub
      super.onPageStarted(view, url, favicon);
  }
  
  @Override
  public void onPageFinished(WebView view, String url) {
      // TODO Auto-generated method stub
      super.onPageFinished(view, url);
      progressBar.setVisibility(View.GONE);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Where is the error here? please help me im also having problem with adview. <a href="https://stackoverflow.com/questions/26341238/android-adview-getting-error">here</a></p>