@Override
    public boolean onHeaderLongClick(AdapterView<?> parent, View view, long id) {
        String text = "Header " + ((TextView)view.findViewById(android.R.id.text1)).getText() + " was long pressed.";
        if (mToast == null) {
            mToast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
        } else {
            mToast.setText(text);
        }
        mToast.show();
        return true;
    }
Mandatory empty constructor for the fragment manager to instantiate the
fragment (e.g. upon screen orientation changes).
Example/src/com/tonicartos/stickygridheadersexample/ItemListFragment.java