title: ListView: Selector drawables drawn in different sizes
body: <p>I'm using a custom ListView selector.
  Everything works fine, except that the drawables for state_focused and state_pressed 
  are drawn bigger than the normal state.</p>
  
  <p>Instead of the default implementation, which uses 9-patch bitmaps, I'm using ShapeDrawables. They all use the same padding values (see below)
  It seems, that they're overwritten by some other values.
  Probably a theme? Couldn't find it though.</p>
  
  <p>ListView</p>
  
  <pre><code>&lt;ListView
  style="@style/dark_bg_style"
  android:id="@android:id/list"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:layout_margin="10dp"
  android:layout_centerInParent="true"
  android:drawSelectorOnTop="false"
  android:cacheColorHint="#00000000"
  android:layoutAnimation="@anim/list_layout_in"
  android:scrollbars="none"
  android:divider="#00000000"
  android:dividerHeight="5dp"
  android:listSelector="@drawable/list_sel"
  /&gt;
  </code></pre>
  
  <p>list_sel.xml</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@android:color/transparent" android:state_window_focused="false"/&gt;
      &lt;item android:drawable="@drawable/button_bg_pressed" android:state_pressed="true"/&gt;
      &lt;item android:drawable="@drawable/button_bg_focused" android:state_focused="true" android:state_selected="true"/&gt;
      &lt;item android:drawable="@drawable/button_bg_focused" android:state_focused="true"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>excerpt from list element layout</p>
  
  <pre><code>&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/menu_sel"
    &gt;
  ...
  </code></pre>
  
  <p>menu_sel.xml</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@android:color/transparent" 
          android:state_focused="true" 
          android:state_selected="true"/&gt;
      &lt;item android:drawable="@android:color/transparent" android:state_selected="true"/&gt;
      &lt;item android:drawable="@android:color/transparent" android:state_pressed="true"/&gt;
      &lt;item android:drawable="@drawable/button_bg_normal"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>button_bg_normal.xml</p>
  
  <pre><code>&lt;shape
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;solid
          android:color="#44C8C8C8" /&gt;
      &lt;corners
          android:radius="5sp" /&gt;
      &lt;padding
          android:left="10dip"
          android:top="5dip"
          android:right="10dip"
          android:bottom="5dip" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>button_bg_pressed.xml</p>
  
  <pre><code>&lt;shape
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;solid
          android:color="#77C8C8C8" /&gt;
      &lt;corners
          android:radius="5sp" /&gt;
      &lt;padding
          android:left="10dip"
          android:top="5dip"
          android:right="10dip"
          android:bottom="5dip" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>button_bg_focused.xml</p>
  
  <pre><code>&lt;shape
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;solid
          android:color="#44C8C8C8" /&gt;
      &lt;corners
          android:radius="5sp" /&gt;
      &lt;stroke
          android:color="#55FFFFFF"
          android:width="1dip" /&gt;
      &lt;padding
          android:left="10dip"
          android:top="5dip"
          android:right="10dip"
          android:bottom="5dip" /&gt;
  
  &lt;/shape&gt;
  </code></pre>