要给LsitView设置padding,那个距离是不会跟着滑动上去的,需要设置一个属性
android:clipToPadding=”false”
Set ListView’s clipToPadding attribute to false. This will enable padding around the ListView and scrolling to the end of the layout (and not only to the edge of the padding).
很神奇的效果,可以试试。