Disable Android GridView highlighting completely (disable selection)

For keeping the items clickable you should use below attr. in your GridView xml:

android:listSelector="#00000000"

See also: https://stackoverflow.com/a/2866074/928591


In the definition of your Adapter for the GridView, you will have to override the following methods:

@Override
public boolean areAllItemsEnabled()
{
    return false;
}

@Override
public boolean isEnabled(int position)
{
    return false;
}

This will cause all of the items in your grid to be non-selectable, and will get rid of the highlight completely.


Just Set v.setOnClickListener(null);