How to catch a click event on a button?
<p>Hey everyone. .NET Developer here just getting started with Eclipse and Android.</p>

<p>Can someone show me in the simplest way possible, with the absolute fewest lines of code, how to DO something when a button is clicked?</p>

<p>My button has id <code>button1</code> and I just want to see where/how to write the <code>onClick()</code> handler.</p>

<p>So let's say I have <code>imageview1</code> set to invisible. How would I make it visible when the button is clicked?</p>

<p>EDIT:</p>

<p>Thanks everyone, but since not a single one of your examples work for me, I'll try this: Can someone please post the ENTIRE code to make this work? Not just the method, becuase when I try to use ANY of your methods I get errors all over the place so obviously something else is missing. I need to see everything, beginning with all the imports. Thank you.</p>
