This is the default behavior for ListView. It can be overridden by setting the cacheColorHint transparency. Just add
android:cacheColorHint="#00000000"
in your xml file.
For more information, see ListView Backgrounds . Here is an excerpt:
, , , , , . (. SetCacheColorHint (int)) XML, android: cacheColorHint. , # 00000000. android: cacheColorHint = "# 00000000", XML
EDIT: , convertView, , , (- ). , , , , . , reset , . - :
if(condition_satisfied) {
//set custom background for view
}
else {
//set default background for view
convertView.setBackgroundResource(android.R.drawable.list_selector_background);
}
, , , , , convertView.
.