title: progress bar for a webview in fragment view
body: <p>i am trying to make a app for android in eclipse. where i different fragments with webviews in it. but i want to show a progress bar when webview in loading but i could not getting it how to do it i checked many tutorials but failed to do so. let me most activity code here.</p>
  
  <pre><code>import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.MenuInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.webkit.WebView;
  import android.webkit.WebViewClient;
  import android.app.Fragment;
  import android.annotation.SuppressLint;
  //import android.graphics.Bitmap;
  //import android.widget.ProgressBar;
  //import android.app.ProgressDialog;
  //import android.app.Activity;
  
  
  @SuppressLint("SetJavaScriptEnabled")
  public class AdminTab1 extends Fragment {
       private WebView webView;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
          setHasOptionsMenu(true);
          View rootView = inflater.inflate(R.layout.admintab1, container, false);
      webView = (WebView) rootView.findViewById(R.id.webView1);
      webView.setWebViewClient(new WebViewClient());
      webView.setScrollbarFadingEnabled(false);  
      webView.setHorizontalScrollBarEnabled(false);  
      webView.getSettings().setJavaScriptEnabled(true);  
      webView.getSettings().setUserAgentString("AndroidWebView");  
      webView.clearCache(true);
      webView.loadUrl("http://ww.google.com"); 
      return rootView;
      }
  
      @Override 
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
          super.onCreateOptionsMenu(menu, inflater);
          inflater.inflate(R.menu.mainmenu, menu);
      }
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
              case R.id.item1:
                  webView.reload();
                  break;
              case R.id.item2:
                  webView.goBack();
                 break;
              default:
                 break;
          }
          return true;
      } 
  }
  </code></pre>