title: Android add image to button
body: <p>I want to add an image to a <code>Button</code> (no <code>imagebutton</code>, as the particular button can either contain text or an image; plus the imagebutton has the same problem), while still retaining the original android-style button. So adding <code>android:background</code> in the XML doesn't cut it, as that will remove the android default button with rounded corners etc. <code>(android.R.drawable.btn_default)</code></p>
  
  <p>Is this in any way possible?</p>
  
  <p>I think one way is to make a <code>9patch</code> image for the button pressed (one for up and one for down) and <code>onTouch Action_DOWN</code> make a layered background drawable and put that onto the button, and doing the same thing but with another <code>9patch</code> for <code>onTouch Action_UP</code>, but I think that will decrease the performance of the application substantially, as that will require quite a lot of resource reading and layer merging for all the button clicks (and for my application, that will be quite a lot). Is what I state above correct?</p>
  
  <p>EDIT: I can't declare the source of the image in the XML, because I get the images from a web service, so anything can be put on the Buttons, but it has to happen programmatically.</p>