I use a ListView
in my layout like this:
Your selector resource seems to be wrong here. You should use a drawable with transparent background, and i think this is what actually colors your rows, but not choiceMode
of the ListView
. Please check this another answer for more details.
For me it worked with:
listView.setAdapter(myAdapter);