@lifeplayer0 的那个问题
在重写的OnContextItemSelected(MenuItem item)里
AdapterView.AdapterContextMenuInfo acm =
(AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
int item_id = (int) acm.id;
即可获取在listview的id;
在重写的OnContextItemSelected(MenuItem item)里
AdapterView.AdapterContextMenuInfo acm =
(AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
int item_id = (int) acm.id;
即可获取在listview的id;
2016-08-29