// every param must not be primitive // and in adapter item's onClick event or onLongClick event , params must like below public void onItemClick(View v, Integer position, ImageInfo item, AdapterManager<?> am) { mToaster.show("ItemHandler_onItemClick: position = " + position + " ,item = " + item); if (item.isSelected()) { am.getSelectHelper().setUnselected(position); } else { am.getSelectHelper().setSelected(position); } }
public void onTextClick(View v, Integer position, ImageInfo item, AdapterManager<?> am) { mToaster.show("on text click: position = " + position + " ,item = " + item); }