Android in ListView click on item invariant color and set Listselector invalid
This is the same problem, click on item in the ListView will change color, because the ListView set the default Listselector, there is a default color, the same way if you click No color change how we set the Listselector will not change color.
But in our development process, we may encounter the problem of the ListView click the invariant color, summed up a bit about these reasons:
1, the layout of the item set background color value, remove the background color can
2, the effect of the Listselector attribute in the ListView is overwritten, such as the list item is a full cell imageview, ImageView if there is content then listselector effect will be blocked
This time we need to add the Drawselectorontop property in the ListView and set to True
This article is for bloggers original articles, reproduced please indicate the source
Http://www.cnblogs.com/rencm/p/5919485.html
Android in ListView click on item invariant color and set Listselector invalid