Android ListView highlight multiple items

Posted by Tobias Kuess on Stack Overflow See other posts from Stack Overflow or by Tobias Kuess
Published on 2013-11-06T19:18:33Z Indexed on 2013/11/06 21:54 UTC
Read the original article Hit count: 177

Filed under:
|
|

I want my ListView to change its background for each selected item (Multi-Selection). I used this code:

    <ListView
    ...
    android:drawSelectorOnTop="false"
    android:listSelector="@android:color/darker_gray" >

This works fine, but it is just possible to select one single item of the list. If I select another one the selection is resetted and the new one changes its background.

Is there an easy and fast way to make it possible to select more than one item at the same time with changing the background of every selected item?

© Stack Overflow or respective owner

Related posts about android

Related posts about listview