title: Transparent circle with border
body: <p>I am trying to create a circle with only a border using XML in android:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="oval" &gt;
  
  &lt;stroke android:width="1dp"
      android:color="#000000"/&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>The code I've used is posted above. However, I get a solid disk and a not a ring. I would like to get the output using just XML and not canvas. What am i doing wrong?</p>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT:</strong> 
  Got it to work thanks to the answer below. Heres my final code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:innerRadius="0dp"
      android:shape="ring"
      android:thicknessRatio="1.9"
      android:useLevel="false" &gt;
  
      &lt;solid android:color="@android:color/transparent" /&gt;
  
      &lt;size android:width="100dp"
       android:height="100dp"/&gt;
  
      &lt;stroke android:width="1dp"
      android:color="#FFFFFF"/&gt;
  
  &lt;/shape&gt;
  </code></pre>