Android custom image on/off button
<p>I want to create custom ImageButton, but to work like on/ off button. On click on button image to be changed to pressed(until another button is pressed)!</p>

<p>On picture This month button is on , This year off .</p>

<p>How can I create button like this? </p>

<p>Do I need to use  and how ?</p>

<p>Thanks</p>

<p><img src="http://i.stack.imgur.com/OGm7s.png" alt="alt text"></p>
