views:

31

answers:

1

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
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); //doesnt work, when i highlight an item, the highlight disappears
Sheehan Alam
You cannot keep the highlight like I told you. The choice mode lets you check an item.
Romain Guy