tags:

views:

231

answers:

2

I have a listview within which each item contains black text on a white background. When testing on a Nexus One, when scrolling down to read through the text, a black highlight appears over the text and makes it unreadable.

I am trying to figure out what is this setting so I can turn it off. I do not want anything to get highlighted when scrolling down through the list. How can I accomplish this?

Thanks.

+1  A: 

You probably want to set the cacheColorHint to the same color as your background.

So, when you're defining your layout, just add android:cacheColorHint='#fff' to your ListView:

<ListView android:id="@+id/list"
    android:cacheColorHint="#fff"
    android:background="#fff"
    ...etc />
synic
Thanks! That did the trick. cheers.
A: 

Another solution would be to set the backgroundcolor of your list to transparent.

Roflcoptr