Listview&gridview default lines on Android are pinned, which can be ugly.
In general to solve this problem will be in the first line or tail line with a hidden view, so it is too troublesome. It's really useful to see this property when you look at a blog online!
Directly on the key properties:
Set android:cliptopadding = True for the ListView or GridView
Then set the distance through Paddingtop and paddingbottom.
Blog Original:
Http://www.cnblogs.com/xitang/p/3606578.html
1.clipChild is used to define whether his child controls should be drawn within the bounds he should have. By default, Clipchild is set to true. That is, the extended drawing is not allowed.
2. Cliptopadding is used to define whether ViewGroup is allowed to be drawn in padding. By default, Cliptopadding is set to ture, which means that the values in the padding are trimmed.
And this feature is a method already available on Android's first version . All can be used across any Android version.