Button color should not change when I release the button in Android
<p>
       
         
             
             
             
             
         
     </p>

<pre><code>&lt;item android:state_focused="true" &gt; 
    &lt;shape&gt; 
        &lt;gradient 
            android:endColor="#FF9900" 
            android:startColor="#FF9966" 
            android:angle="270" /&gt; 
        &lt;stroke 
            android:width="3dp" 
            android:color="#CCCCCC" /&gt; 
        &lt;corners 
            android:radius="3dp" /&gt; 
        &lt;padding 
            android:left="10dp" 
            android:top="10dp" 
            android:right="10dp" 
            android:bottom="10dp" /&gt; 
    &lt;/shape&gt; 
&lt;/item&gt; 

   &lt;item&gt;         
    &lt;shape&gt; 
        &lt;gradient 
            android:endColor="#FFFFFF" 
            android:startColor="#FFFFFF" 
            android:angle="270" /&gt; 
        &lt;stroke 
            android:width="1dp" 
            android:color="#666666" /&gt; 
        &lt;corners 
            android:radius="1dp" /&gt; 
        &lt;padding 
            android:left="3dp" 
            android:top="3dp" 
            android:right="3dp" 
            android:bottom="3dp" /&gt; 
    &lt;/shape&gt; 
&lt;/item&gt; 
</code></pre>

<p> 
The above is the code I have written for filling borders of Button with black color.The same code I was using for 3 buttons by setting as background.Now, when I click button1, red color appears and goes when I  releases. But I want Red color to be visible, until I press next button. Though I release Button1 after press, Red color should be visible. But Red color should only disappear when I press any other button.
<br>
  Can anyone help me in solving this  issue?<br>
Please anyone help me in sorting out this issue? <br>
Thanks  in Advance,</p>
