title: Android Set ImageButton as Toggle
body: <p>How can I have an imagebutton stay in the 'pressed' state when it is clicked? Basically I just want the background to be the depressed background, but I can't figure out how to set it. At the moment, I've just copied the selected button background into my res folder, but when I set it as the background, it becomes blurry (since the original image is bigger than the button itself). </p>
  
  <p>Normal Background:
  <a href="http://img707.imageshack.us/img707/9199/ss20100426163452.png">alt text http://img707.imageshack.us/img707/9199/ss20100426163452.png</a>
  What I'm getting:
  <a href="http://img707.imageshack.us/img707/912/ss20100426163357.png">alt text http://img707.imageshack.us/img707/912/ss20100426163357.png</a>
  <a href="http://img3.imageshack.us/img3/8304/ss20100426163623.png">alt text http://img3.imageshack.us/img3/8304/ss20100426163623.png</a></p>
  
  <p>Also I don't believe I can actually use this method considering the many different UI layouts. The button should stay pressed as per the UI the user is using.</p>