Key events on a custom android View object
<p>I have a class that extends <code>View</code> and I wish to add some effects for <code>onKeyDown</code> events so I can change the colour of the item etc.</p>

<p>I have the following code in my class:</p>

<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
    Log.v("keydown", "event");
    super.onKeyDown(keyCode,event);
    if(event.getAction() == KeyEvent.ACTION_DOWN) {
        return true;
    }
    return super.onKeyDown(keyCode, event);
}
</code></pre>

<p>I'm trying to override the parent <code>onKeyDown</code> method but I cannot get this to work... The log is not displayed. Is it possible to add methods for changing a view item appearance within its own class?</p>
