title: How to show Progress Dialog in listview
body: <p>I have a ListView and in the fill method I want that when I click on each items Progress Dialog showing (for loading)</p>
  
  <p>here is my fill method </p>
  
  <pre><code>public void fill(final ArrayAdapter&lt;RssParser.Item&gt; adapter, final RssParser.Item item, final int position)
  {  
        Thread thread = new Thread(new Runnable() {
  
              @Override
              public void run() {
  
                  ActivityStartup.handler.post(new Runnable() {
  
                      @Override
                      public void run() {
                          ActivityStartup.dismissLoadingDialog();
                          txtTitle.setText(item.title);
                          txtDate.setText(item.pubDate);
                          txt_time.setText(item.time);
                          txtDescription.setText(item.description);
                          layoutRoot.setOnClickListener(new OnClickListener() {
  
                              @Override
                              public void onClick(View v) {
  
                                   **//\\  here I want to display Progress Dialog //\\**
  
                                  Intent intent = new Intent(G.context, Adapter_Description.class)
                                          .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                  intent.putExtra("INPUT", item.link + "");
                                  intent.putExtra("INPUT_DESC", item.description + "");
                                  G.context.startActivity(intent);
                              }
                          });
  
                      }
                  });
  
              }
          });
          thread.start();
  </code></pre>
  
  <p>I write this but it has error on <strong>"new ProgressDialog(this);"</strong>
  and the error said:
   The constructor ProgressDialog(new View.OnClickListener(){}) is undefined</p>
  
  <pre><code>if (progress == null) {
  progress = new ProgressDialog(this);
  progress.setTitle("title");
  progress.setMessage("loading");
  }
  progress.show();
  </code></pre>