您的位置:首页 > 移动开发 > Android开发

ListView 可以滑动的上下间距

2015-03-22 15:35 302 查看
要给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).

很神奇的效果,可以试试。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android 滑动