Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Android ListView selector

I am trying to disable the ListView selector on my ListView. I set the List Selector color to a transparent color. This seems to do the trick, but when I select certain text, they change colors. How can I make things work ok?

like image 755
Sheehan Alam Avatar asked Jun 15 '11 23:06

Sheehan Alam


1 Answers

In your XML where you declare the ListView use:

<ListView android:id="@+id/my_list" android:listSelector="#00000000" />
like image 54
Mick Byrne Avatar answered Sep 28 '22 17:09

Mick Byrne