How to show that ImageButton is pressed?
<p>How to show that ImageButton is pressed if i add image to it like this:</p>

<pre><code>        Drawable testPic = getResources().getDrawable(R.drawable.test_pic);

        button.setImageDrawable( testPic ); 
</code></pre>

<p>And make transparent background so that there would be just image:</p>

<pre><code>button.setBackgroundColor(Color.TRANSPARENT); 
</code></pre>

<p>So when i press image button i don't see that it is pressed. I want that image would be highlighted or something when it is pressed.</p>

<p>Also every my button is created dynamically by code and i don't know what image would be and how many button there are.</p>

<p>So any ideas ? </p>

<p>Thanks. </p>
