use `parent.getAdapter().getItem(position)`