Search code examples
androidlistviewlistviewitem

How to keep android listview highlighted?


if I click on a listview item i want to keep the highlight on it. how do i do this?


Solution

  • 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.