title: OnClickListener isn't working for ImageView
body: <p>I'm pretty sure everything is right but the log isn't showing up in the console area of Eclipse when I click any of the images.</p>
  
  <p>Ultimately, I want to have a popup menu appear when these images are clicked but right now I'm just trying to get the onclick events working correctly and then I'll add those in later.</p>
  
  <p>My code:</p>
  
  <p>Java</p>
  
  <pre><code>public class SecondScreen extends HelloAndroid {
      public void onCreate(Bundle savedInstanceState) {
  
          this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
             super.onCreate(savedInstanceState);
             setContentView(R.layout.main2);
  
             // initialize header
             ImageView header = (ImageView) findViewById(R.id.header_image);
             header.setOnClickListener(headerClick);
  
             // Make sure vitals and details are same size
             LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);
             params.weight = 0.5f;
  
             // initialize vitals image
             ImageView vitals = (ImageView) findViewById(R.id.vitalsigns_image);
             vitals.setLayoutParams(params);
             vitals.setOnClickListener(vitalsClick);
  
             // initialize details image
             ImageView details = (ImageView) findViewById(R.id.details_image);
             details.setLayoutParams(params);
             details.setOnClickListener(detailsClick);
  
  
  
  
         }
  
          private OnClickListener headerClick = new OnClickListener() {
  
              public void onClick(View view) {
                  Log.d("Clicked", "Header Clicked!");
  
  
  
              }
         };
  
  
          private OnClickListener vitalsClick = new OnClickListener() {
  
               public void onClick(View view) {
                  Log.d("Clicked", "Vitals Clicked!");
  
  
  
               }
          };
  
          private OnClickListener detailsClick = new OnClickListener() {
  
               public void onClick(View view) {
                  Log.d("Clicked", "Details Click!");
  
  
  
               }
          };
  }
  </code></pre>
  
  <p>XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;!-- HEADER --&gt;
  
      &lt;ImageView 
         android:id="@+id/header_image"
         android:src="@drawable/header"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignParentTop="true"
      /&gt; 
  
  
  
  &lt;!-- FOOTER --&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#000000"  
      android:layout_alignParentBottom="true"&gt;
      &gt;
  
  
      &lt;ImageView
          android:id="@+id/vitalsigns_image"
          android:src="@drawable/vitalsigns"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:layout_alignParentBottom="true"
      /&gt;
  
      &lt;ImageView
          android:id="@+id/details_image"
          android:src="@drawable/details"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:layout_alignParentBottom="true"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>What am I doing wrong?</p>