title: Android: circle drawing cuts borders
body: <p>In a item list view, I want to draw a circle with a specific information inside. But the circle borders don't show correctly.</p>
  
  <p>This is the part of my layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:azeoo="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="@dimen/schedule_workout_item_exercice_height"
      android:gravity="center_vertical"
      android:orientation="horizontal"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_marginLeft="@dimen/keyline_1"
          android:orientation="horizontal"&gt;
  
          &lt;!-- Exercice number --&gt;
  
          &lt;RelativeLayout
              android:layout_width="24dp"
              android:layout_height="24dp"
              android:orientation="vertical"&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/exercice_num_container"
                  android:visibility="visible"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"&gt;
  
                  &lt;TextView
                      android:id="@+id/exercice_num"
                      style="@style/ItemExerciceNum"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:gravity="center_vertical|center_horizontal"
                      android:text="1" /&gt;
  
                  THIS IS THE CIRCLE HERE:
  
                  &lt;View
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:background="@drawable/circle_exercice_num" /&gt;
  
              &lt;/RelativeLayout&gt;
  
          &lt;/RelativeLayout&gt;
  
          &lt;!-- Exercice informations --&gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="horizontal"
              android:paddingLeft="8dp"&gt;
  
          ...
  </code></pre>
  
  <p>The drawable circle_exercice_num.xml:</p>
  
  <pre><code>&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;stroke
          android:width="1dp"
          android:color="@color/item_exercice_num"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>The result (even in Design mode in Android Studio!):</p>
  
  <p><img src="https://i.stack.imgur.com/AmNYc.png" alt="enter image description here"></p>
  
  <p>Thanks for your help guys !</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Ok guys, I couldn't find any solution for this Android problem. So, I took this library: <a href="https://github.com/pavlospt/CircleView" rel="nofollow noreferrer">https://github.com/pavlospt/CircleView</a>. And it's work nice now :)</p>