Android: Disable highlighting in GridView

Impression picture Impression · May 19, 2010 · Viewed 34.4k times · Source

How can I turn off the orange highlight when clicking an item in a GridView?

I haven't been able to find a solution in the documentation or through testing.

Answer

CommonsWare picture CommonsWare · May 19, 2010

Use android:listSelector="#00000000" in your GridView element in your XML layout file.