@Override
public boolean onContextItemSelected(MenuItem item) {
AdapterView.AdapterContextMenuInfo info;
try {
info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
} catch (ClassCastException e) {
e.printStackTrace();
return super.onContextItemSelected(item);
}
info.position; // list view position 값
...
}
댓글 없음:
댓글 쓰기