title: padding image from xml selector
body: <p>I'm trying to padd my button background image of my main menu (I'm using a selector for the different states), doing it on this way (buttoninicio_custom.xml):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@drawable/botoninicial_pressed"
            android:state_pressed="true"&gt;
  
              &lt;padding
              android:left="10dp"
              android:top="10dp"
              android:right="10dp"
              android:bottom="10dp" /&gt;
  
      &lt;/item&gt;
      &lt;item android:drawable="@drawable/botoninicial_pressed"
            android:state_focused="true"&gt;
  
              &lt;padding
              android:left="10dp"
              android:top="10dp"
              android:right="10dp"
              android:bottom="10dp" /&gt;
  
      &lt;/item&gt;
      &lt;item android:drawable="@drawable/botoninicial"&gt;
              &lt;padding
              android:left="10dp"
              android:top="10dp"
              android:right="10dp"
              android:bottom="10dp" /&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>..but the padding has no effect. What I should do to solve this problem??</p>
  
  <p>I already used "bitmap" tag inside each "item" tag with the padding inside, but it's still doing anything!!!</p>
  
  <p>My main button looks this way:</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="center_horizontal"
      android:orientation="horizontal" &gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="180dp"
          android:layout_height="50dp"
          android:layout_marginBottom="15dp"
          android:textSize="16sp"
          android:textColor="#FFFFFF"
          android:background="@drawable/buttoninicio_custom"
          android:text="@string/idmMENU2" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>"Because if I set android:padding inside the "button" tag, it pads me the text not the background image... The problem it's that when I pressed the main button: My image background change correctly but the new image appear cut."</p>