title: Button gets bigger when background is set - How to make it small
body: <p>I want to make my button narrowed or back to normal before it was set with background.</p>
  
  <p>I know using background tint will work on this with same background color but my problem is I am using a selector on background. When selector is set to button background, it became wider. When I switched background to backgroundtint, the color become different (e.g. for me is violet) and it is not changing color on pressed. Padding are not working as work around by setting the negative values nor positive values. What else can I do ? My goal is my button will change color when clicked but it's height is narrow/default size like in wrap content.</p>
  
  <p>Here is my sample code of the button</p>
  
  <pre><code>&lt;Button
      android:text="Add"
      android:fontFamily="@string/fontFamily"
      android:layout_height="wrap_content"
      android:layout_width="wrap_content"
      android:id="@+id/btnInformantsAdd"
      android:gravity="center"
      android:textColor="@color/white"
      android:textSize="@dimen/textSizeCommon"
      android:background="@drawable/ButtonSelectorBlue"
      android:paddingTop="-10dp"
      android:paddingBottom="-10dp"
      android:layout_gravity="center"
      android:layout_marginTop="@dimen/marginTop1"
      android:layout_marginBottom="@dimen/marginTop1" /&gt;
  </code></pre>
  
  <p>Selector XML Code</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:state_pressed="true"&gt;
      &lt;layer-list&gt;
        &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
            &lt;solid android:color="@color/bluegreendark_light" /&gt;
            &lt;padding android:left="10dp"
               android:top="@dimen/paddingSide1"
               android:right="10dp"
               android:bottom="@dimen/paddingSide1"/&gt;
            &lt;corners android:radius="5dp" /&gt;
          &lt;/shape&gt;
        &lt;/item&gt;
      &lt;/layer-list&gt;
    &lt;/item&gt;
  
    &lt;item android:state_pressed="false"&gt;
      &lt;layer-list&gt;
        &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
            &lt;solid android:color="@color/bluegreendark"/&gt;
            &lt;padding android:left="0dp"
               android:top="0dp"
               android:right="0dp"
               android:bottom="0dp"/&gt;
            &lt;corners android:radius="5dp" /&gt;
          &lt;/shape&gt;
        &lt;/item&gt;
      &lt;/layer-list&gt;
    &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>