ListView 中几个常见属性的意思,先记下,以免以后找
ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:divider="@color/line_color"
android:dividerHeight="0.5dp"
android:fadingEdge="none"
android:overScrollMode="never">
</ListView>
去除拖动时默认的带颜色的背景:
android:cacheColorHint=”#00000000”
去除ListView滑到顶部和底部时边缘的黑色阴影:
android:fadingEdge=”none”
去除下滑到底部,上拉时出现的带阴影颜色区域
android:overScrollMode=”never”