Android ListView滑动时出现黑屏解决方法

在初始化ListView时,设置其相应属性

listview.setCacheColorHint(Color.TRANSPARENT);

源码解释:

 When set to a non-zero value, the cache color hint indicates that this list is always drawn on top of a solid, single-color, opaque background

你可能感兴趣的:(Android)