I am trying to change the background color by a click on ListView. My code looks like this:
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
arg1.setBackgroundColor(Color.GREEN);
}
The strange thing is this, if I click on Item number 7, the background of Item 7 changes but also from Item number 6.