title: Android OnClickListener in an ImageView of ListView
body: <p>I have a <code>ListView</code> in my layout. To display the listing in it, I have used the following code.</p>
  
  <pre><code>ListView shopActivityListView = (ListView) findViewById(R.id.shopActivityListView);
  shopActivityListView.setAdapter(new ArrayAdapter&lt;String&gt;(getApplicationContext(), R.layout.shopitem, R.id.text1,trackArr[1]));
  </code></pre>
  
  <p>Here is xml for <code>shopitem.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android" 
      android:paddingTop="2dip"
      android:paddingBottom="2dip"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:mode="twoLine"&gt; &lt;!-- android:background="@drawable/homebg" --&gt;
      &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/text1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingTop="6dip"
          android:paddingLeft="44dip"
          android:textStyle="bold" 
          android:lines="1"
          android:textColor="#FFFFFF"/&gt;
      &lt;ImageView
              android:id="@+id/buyBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
               android:paddingTop="3dip"
              android:layout_marginLeft="252dip"
              android:layout_alignRight="@android:id/text1"
              android:src="@drawable/btnbuy"/&gt;            
  &lt;/TwoLineListItem&gt;
  </code></pre>
  
  <p>Now I want to add a <code>onClickListener</code> on the <code>ImageView</code> of each item. How can I add it?</p>