Just ike ListView:
stgv.setOnItemClickListener(new StaggeredGridView.OnItemClickListener() {
@Override
public void onItemClick(StaggeredGridView parent, View view, int position, long id) { }
});
But I dont recomend this, this might elicit bugs.
To set OnClickListener to the child view in the getView() method of the adapter instead.
I did it in the demo.
Just ike ListView: stgv.setOnItemClickListener(new StaggeredGridView.OnItemClickListener() { @Override public void onItemClick(StaggeredGridView parent, View view, int position, long id) { } }); But I dont recomend this, this might elicit bugs. To set OnClickListener to the child view in the getView() method of the adapter instead. I did it in the demo.