Android Custom Image Button Does Not Stay Selected
<p>I am currently using an ImageButton, and I want to have the effect like radio button once you select it stays selected, until someone picks another image button.  I have setup custom selector like below:</p>

<pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
   &lt;item android:state_pressed="true"
           android:drawable="@drawable/buttonimagesel" /&gt; &lt;!-- pressed --&gt;
     &lt;item android:state_focused="true"
           android:drawable="@drawable/buttonimagesel" /&gt; &lt;!-- focused --&gt;
     &lt;item android:drawable="@drawable/buttonimage" /&gt; &lt;!-- default --&gt;
&lt;/selector&gt;
</code></pre>

<p>But this just shows the selected image for as long as the key is pressed down.  The effect i want is for it to stay selected like a radio button until the request is processed after which the whole activity including the button is redrawn.   So I want one click to put the button in a selected state and unclick does not change this.   Also I do not want the other buttons to be selectable after this happens, and I don't certainly don't want them to change images or anything like that.</p>

<p>Thanks</p>
