You can define your own OnTouchListener to capture events received by the View in the GridView. Something like that:
View.OnTouchListener listener = new View.OnTouchListener {
public void onTouch ( View v, MotionEvent event ) {
return false;
}
}
public View getView ( int position, View v, ViewGroup vg ) {
v.setOnTouchListener ( listener );
return v;
}
source
share