ListView Listener not Working
<p>I've seen a few examples on here to this problem, but none have solved this issue, observe the code below:</p>

<pre><code>mProductList = hotdealhelper.getCatalog(getResources());
ListView myListView = (ListView) findViewById(R.id.listViewoffers);
myListView.setAdapter(new hotdealadapter(mProductList, getLayoutInflater()));



myListView.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position,
      long id) {
        System.out.println("Newbie");
    }});
</code></pre>

<p>I have it in my oncreate lethod, and when I click on a particular position in the list, it is not printing the system.out. I am wondering why this is, I have used this exact code in another class and it works fine. I have the list in a activity class also. Below is the xml if it helps.</p>

<blockquote>
  <p>

<pre><code>&lt;ImageView android:id="@+id/imageView1" android:src="@drawable/dealheader" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true"&gt;&lt;/ImageView&gt;
&lt;ListView android:layout_height="wrap_content" android:id="@+id/listViewoffers" android:layout_width="match_parent" android:layout_marginTop="35px"&gt;&lt;/ListView&gt;
&lt;Button android:text="Button" android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="0px" android:layout_alignParentBottom="true"&gt;&lt;/Button&gt;
</code></pre>
  
  <p></p>
</blockquote>
