title: android change image button background
body: <p>I cannot seem to change the background image of my image button. Heres the code i'm currently trying to use:</p>
  
  <pre><code>ImageButton imgButton = (ImageButton) findViewById(R.id.showSportsButton);
  imgButton.setBackgroundResource(R.drawable.tab2_selected);
  </code></pre>
  
  <p>However this seem to be placing the new image on top of the old image leaving me with 2 images overlapping each other.</p>
  
  <p>Does anyone know why this is??</p>