要給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).
很神奇的效果,可以試試。