ListViewのdividerに余白をつける方法です。
dividerのdrawableを作成
res/drawable/
にdivider用のxmlを作成します。
res/drawable/divider.xml
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetLeft="16dp"
android:insetRight="16dp">
<shape>
<solid android:color="#EEEEEE" />
<corners android:radius="1dp" />
</shape>
</inset>
ListViewのdivider属性にセット
作成したxmlを、ListViewのdivider属性にセットします。
<ListView
android:divider="@drawable/divider"
android:dividerHeight="1dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />