title: For Android ListView, Is it possible to set a divider and create a padding for each listitem?
body: <p>I want to create a Listview where each item has a divider and a padding or margin to other element, is that possible?</p>
  
  <p>I only saw solutions where somebody used the divider as "padding or margin" because the color is the same as background. But i need both.</p>
  
  <p>my style for the list:</p>
  
  <pre><code>&lt;!-- res/values/styles.xml --&gt;
  &lt;style name="ListView" parent="@android:style/Widget.ListView"&gt;
      &lt;item name="android:background"&gt;@color/light_grey&lt;/item&gt;
      &lt;item name="android:cacheColorHint"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:divider"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:dividerHeight"&gt;2dp&lt;/item&gt;
      &lt;item name="android:listSelector"&gt;@drawable/list_item_selector&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>