ListView 可以滑动的上下间距
16lz
2021-01-23
要给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 : 控件在代码中设置属性-setWidth(int pixels)或setHeig
- Android View measure (五) 支持margin属性,从一个异常说起
- Android Banner属性设置
- Android 用属性动画自定义view的渐变背景
- android 属性动画之 ObjectAnimator
- Android 设置对话框中的确定按钮的 enabled 属性