Android: Disable Highlight Color Of ListView On Click

If you want to have your ListView widget for viewing purposes only, chances are you may want to remove those annoying default highlight orange color when you click on any rows, plus the black background color that engulfs the whole ListView.

You need to do two things. Add these two attributes in your ListView object and you are good to go.

There is a 3rd attribute that you may want to use when you select the ListView and scroll it down, you will notice there is an orange line at the top. If you want to remove that, then add this attribute:

Related Posts Plugin for WordPress, Blogger...

5 comments

Leave a Reply

Your email address will not be published. Required fields are marked *