add click listener in grid view code example
Example: add click listener in grid view
// Implement On Item click listener
gridView1.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView> parent, View view, int position, long id) {
switch (position) {
case 0:
break;
case 1:
break;
}
}
});