i have listView, each item have different BackgroundColor set in getView function:
if ((position % 2) == 0) {
row.setBackgroundColor(Color.rgb(227, 227, 227));
} else {
row.setBackgroundColor(Color.WHITE);
}
and when click any item change BackgroundColor, set this code in onItemClick function:
v.setBackgroundColor(color.pressedColor);
but when i return to listView by click back button the item which was click don't return to normal BackgroundColor, it color stay same pressed BackgroundColor.
how can return the default BackgroundColor when press back button?