Sheehan Alam
Sheehan Alam

Reputation: 60879

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?

Upvotes: 0

Views: 1095

Answers (1)

Romain Guy
Romain Guy

Reputation: 98501

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.

Upvotes: 1

Related Questions