title: How to set background image for button in Android?
body: <p>I Imported one image inside the drawable-mdpi, then implemented the image from button, but an error occurs <code>no resource found here</code>. How do I fix this issue?</p>
  
  <p>I tried this:</p>
  
  <p>main.xml</p>
  
  <pre><code>  &lt;Button
          android:id="@+id/imageButtonSelector"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable-mdpi/button_focused_orange"/&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/AyZUu.png" alt="enter image description here"></p>