if I click on a listview item i want to keep the highlight on it. how do i do this?
A:
Use ListView.setChoiceMode(). The "highlight" is meant to disappear when the user touches the screen and trying to change this behavior would be bad for consistency. The choice mode was meant to address this.
Romain Guy
2010-09-03 04:41:47
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); //doesnt work, when i highlight an item, the highlight disappears
Sheehan Alam
2010-09-03 04:57:39
You cannot keep the highlight like I told you. The choice mode lets you check an item.
Romain Guy
2010-09-03 17:26:49