I want to create a Listview where each item has a divider and a padding or margin to other element, is that possible?
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.
my style for the list:
<!-- res/values/styles.xml -->
<style name="ListView" parent="@android:style/Widget.ListView">
<item name="android:background">@color/light_grey</item>
<item name="android:cacheColorHint">@android:color/transparent</item>
<item name="android:divider">@android:color/transparent</item>
<item name="android:dividerHeight">2dp</item>
<item name="android:listSelector">@drawable/list_item_selector</item>
</style>