You can use the generic ViewGroup.LayoutParams
if you don't know or can't be sure of the class of the parent. In your case, though, the parent is the ListView itself, so you can use AbsListView.LayoutParams
if you need something more concrete.
Now, the problem is in any case that ListView doesn't support margins. If you want to add some space between items, you can play around with the padding of each row. If that doesn't work for you you can also add a transparent divisor to the ListView with the height you need, and maybe a horizontal margin to the ListView. Something like this:
<ListView
...
android:divider="@android:color/transparent"
android:dividerHeight="10dp"
android:marginLeft="5dp"
android:marginRight="5dp" />
would add a 5dp margin around every list cell.