@SuppressLint("NewApi")
    private void setActivatedPosition(int position) {
        if (position == ListView.INVALID_POSITION) {
            mGridView.setItemChecked(mActivatedPosition, false);
        } else {
            mGridView.setItemChecked(position, true);
        }

        mActivatedPosition = position;
    }
Turns on activate-on-click mode. When this mode is on, list items will be
given the 'activated' state when touched.
Example/src/com/tonicartos/stickygridheadersexample/ItemListFragment.java