ListItem onClick issue
<p>I have a <strong>listview</strong> and in each of listitems I am adding a <em>checkbox</em>, two <em>textviews</em> and <em>imageview</em>. What I want is to have a click action on listitem and a separate click action on imageview as well (which lies in the listitem).<br>
I used the following code for itemclick event :  </p>

<pre><code>lv.setOnItemClickListener(new OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position,
                long arg3) {
            CustomizeDialog customizeDialog = new CustomizeDialog(desserts.this);            // Used to show a dialog
            customizeDialog.show();
            // TODO Auto-generated method stub

        }


    });  
</code></pre>

<p>Also on clicking item checkbox is checked. So, two things are happening (checkbox is checked and dialog appears), which is true according to functionality. I want that when user clicks the listitem checkbox is checked or unchecked and no dialog should appear, and when user click imageview on same listitem,only a dialog is shown above and no checkbox is checked or unchecked.<br>
How can I achieve that? Please help.  </p>

<p>Stone</p>
