view on press onpress: Change background color on press? How do I show that the View is being pressed?
<p>Hey,
I have, for the time being, a custom view with a 9-patch image as a border.</p>

<p>That custom view is placed three times in a LinearLayout, so it looks like this:</p>

<pre><code>+------------------------+
|  CustomView            |
+------------------------+
|  CustomView            |
+------------------------+
|  CustomView            |
+------------------------+
</code></pre>

<p>I have attached a click event listener to the View, so it is clickable. But then I click it, I cant see that I am clicking it - there is no change in color.</p>

<p>So, Im thought that I'd attach a "onPress" listener, and then change the background of the view but I couldnt find such a listener.</p>

<p>So, the question is - how do I create the behaviour on the View so I can see that it is being pressed? this is normally done in Android with a green background to indicate that it is now being pressed.</p>

<p>Regards</p>
