title: Android - How to create divider for ListView with rounded corners
body: <p>I want to give my <code>ListView</code> rounded corners and some padding. Here is my style:</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;solid android:color="@color/white"/&gt;
    &lt;corners android:radius="10px"/&gt;
    &lt;padding android:left="5dp" android:top="5dp" android:right="5dp" android:bottom="5dp" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>But when I create a divider its width is not from one end to the other but looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/VvYTe.png" alt="enter image description here"></p>
  
  <p>I create the divider like this:</p>
  
  <pre><code>&lt;ListView android:id="@+id/livList"
                        ...
                        android:divider="@color/bordeaux"
                        android:dividerHeight="1px" /&gt;
  </code></pre>
  
  <p>Any ideas how to tell the divider to strech from one end to the other?</p>
  
  <p>Thanks!</p>