list view loses clickable nature
<p>I have a requirement that in a listview for every view i have to show textviews,imageview and a checkbox . but whenever if i add a checkbox to the listview then the listview loses its natural behaviour. i.e, it will not give any feedback if we click on listview.</p>

<p>instead I have tried by taking  images even for checkboxes also everything is ok now,but   <code>checkbox.ischecked()</code> methods so on.. can't be applied on images. </p>

<p>Can some one plz help out me in this issue ...</p>

<p>This is the layout i am using </p>

<p></p>

<pre><code>&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
   android:background="#ffffff"&gt;


&lt;CheckBox
android:id="@+id/chkfrnd2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:layout_x="0px"
android:layout_y="0px"/&gt;
&lt;ImageView
android:id="@+id/userimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
&gt;
&lt;/ImageView&gt;
&lt;ImageView
android:id="@+id/userstatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
 android:src="@drawable/statusimage"
 android:layout_gravity="center_vertical"  
&gt;
&lt;/ImageView&gt;
&lt;RelativeLayout    android:layout_width="wrap_content"
  android:layout_height="wrap_content" &gt;
&lt;LinearLayout
android:id="@+id/widget48"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"&gt;
    &lt;TextView android:id="@+id/username"
        android:layout_gravity="center_vertical"
        android:layout_width="wrap_content"         
        android:layout_height="wrap_content" 
        android:textColor="#000000"   
        android:textStyle="bold"
        android:textSize="15dip"   
        /&gt;

    &lt;TextView android:id="@+id/userstatusmsg"
        android:layout_gravity="center_vertical"
        android:layout_width="wrap_content"        
        android:layout_height="wrap_content"
        android:textColor="#000000"   
        android:textStyle="bold"
        android:textSize="15dip"   
        android:text="TestMobileApp" /&gt;    
        &lt;/LinearLayout&gt;
 &lt;ImageView
android:id="@+id/userphone"
android:src="@drawable/newphone"  
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:clickable="true"
&gt;
&lt;/ImageView&gt;
&lt;TextView android:id="@+id/friendstatus"

        android:layout_width="wrap_content"        
        android:layout_height="wrap_content"
        android:textColor="#000000"   
        android:textStyle="bold"
        android:textSize="15dip"   
         /&gt;  
 &lt;/RelativeLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>
