title: Delay popping up a dialog fragment till a webview within has completed loading
body: <p>I have a dialog fragment which essentially contains just a single web view. I want the dialog to popup only once the web view has completed loading the URL.</p>
  
  <p>This is the <code>onCreateView</code> of my <code>DialogFragment</code></p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.dialog_A, container, false);
  
      webView = (WebView) view.findViewById(R.id.web_view);
      webView.clearCache(true);
      webView.loadUrl(url);
  }
  </code></pre>
  
  <p>The problem I have is that the web view object is created only after the <code>onCreateView()</code> method is called which will be called only after <code>show()</code> is called; which in turn will cause the dialog to popup. </p>
  
  <p>Is there anyway that I can preload the web view before I popup the dialog?</p>