John Moffitt John Moffitt - 1 month ago 17
Android Question

Android: disabling highlight on listView click

I want to disable the orange highlight that occurs when touching a listView row. So far in my xml I have tried the following:

android:focusable="false"
android:focusableInTouchMode="false"
android:clickable="false"


More information: I want there to be zero difference when a user touches the screen on this listView object.

Answer

The orange highlight effect is a style on the ListView. This article gives a good overview of how to override the listView style.

Essentially, you have a selector that specifies different style elements based on the current state.

see this for short and quick solution http://stackoverflow.com/a/12242564/185022

Comments