title: CheckBox in ListView setonclicklistener not working properly
body: <p>I have a <code>ListView</code> with <code>CheckBox</code> and a <code>TextView</code> . In my adapters <code>getView()</code> method I implemented this listener on checkbox.</p>
  
  <pre><code>holder.check.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              HashMap&lt;String, String&gt; localMap = (HashMap&lt;String, String&gt;) holder.check
                      .getTag();
              if (holder.check.isChecked()) {
                  trackinglist.add(localMap.get("taskid"));
                  checkedlist.add(localMap.get("taskid"));
              } else {
                  if (trackinglist.contains(localMap.get("taskid"))) {
                      trackinglist.remove(localMap.get("taskid"));
                  }
                  if (alreadycheckedlist.contains(localMap.get("taskid"))) {
                      undonelist.add(localMap.get("taskid"));
                      alreadycheckedlist.remove(localMap.get("taskid"));
                  } else {
                      checkedlist.remove(localMap.get("taskid"));
                  }
              }
  
          }
      });
  </code></pre>
  
  <p>Now my problem is that the <code>holder.check.isChecked()</code> always returns false even when the <code>CheckBox</code> is clicked and it is checked . What might be causing this behavior ? and yes I dont want to use <code>setoncheckchangelistener</code> . Please Help.</p>