title: Setting ClickListener from the Layout
body: <p>Having problems to set ClickListener from Layout</p>
  
  <p>Inside my layout:</p>
  
  <pre><code>&lt;ImageButton 
      android:id="@+id/VimeoButton" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content"
      android:src="@drawable/vimeo_icon"
      android:onClick="OpenVimeo"
  &gt;
  </code></pre>
  
  <p>And in the main class (an activity):</p>
  
  <pre><code>public void OpenVimeo(View v)
      {
  
          Intent myIntent;
          Log.i(tag,"Inside");
          myIntent=new Intent (AndroidRSS.this,Video.class);
          startActivity(myIntent);
      }
  </code></pre>
  
  <p>But seems not to handle click events.</p>