title: Android drawable shape : make Rectangle into a Square
body: <p>I'm trying to define a nice rounded corner square shape in Android, but I can only get a nice rounded corner rectangle.</p>
  
  <p>My  xml in /res/drawable looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res/uk.co.alexlydiate.sequencer"&gt;
  
  &lt;item android:state_pressed="true" 
        app:state_playing = "true" &gt;
      &lt;shape&gt;
          &lt;stroke
              android:width="2dp"
              android:color="@color/red" /&gt;
          &lt;corners
              android:radius="3dp" /&gt;
          &lt;padding
              android:left="10dp"
              android:top="10dp"
              android:right="10dp"
              android:bottom="10dp" /&gt;
          &lt;solid 
              android:color="@color/blue" /&gt;
          &lt;size
              android:width="3dp"
              android:height="3dp" /&gt;
      &lt;/shape&gt;        
  &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>And all works fine except</p>
  
  <pre><code>&lt;size android:width="3dp" android:height="3dp" /&gt;
  </code></pre>
  
  <p>Which I'd have hoped made the thing square, but no such luck.</p>
  
  <p>My layout looks like this:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/grid8x8"
      android:gravity="center"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
  &lt;uk.co.alexlydiate.sequencer.Key  android:background="@drawable/key"        
      android:id="@+id/keyA1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:layout_weight="1"  android:layout_margin="2px"
  /&gt;
  &lt;uk.co.alexlydiate.sequencer.Key  android:background="@drawable/key"        
      android:id="@+id/keyA2"
      android:layout_below="@+id/keyA1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:layout_weight="1"  android:layout_margin="2px"
  /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Anybody got any bright ideas?  Thanks!</p>