listview解决滑动条目的时候背景变为黑色的问题

方式一:java代码:

 1 listView.setCacheColorHint(0); 

方式二:布局文件

1     <ListView
2         android:id="@+id/listView1"
3         android:layout_width="match_parent"
4         android:layout_height="wrap_content" 
5         android:cacheColorHint="#0000"
6         >
原文地址:https://www.cnblogs.com/johnsonwei/p/5659806.html