ListView is a commonly used display control. The default background is the same transparent color as the system window. If a background image or background color is added to ListView, The listView will be black when scrolling, because, during scrolling, when the view in the list is re-painted, the system still uses the default transparent color. The color value is # FF191919. to change this situation, you only need to call setCacheColorHint (0) of listView and set the color value to 0 or the attribute android: cacheColorHint = "@ android: color/transparent" of listView in xml file (android: cacheColorHint = "#00000000,
When you scroll, no background color is displayed when you repaint the View. You can add this sentence if you do not want to click the listview option. Android: listSelector = "#00000000" after the above settings, the ListView does not have any symptom when you click item.