不知道长按的时候会不会产生onItemClick事件,如果有,那就在click的时候记录点击的item信息,然后在contextmenu弹出来的时候根据记录的信息设置title。如果没有,那我建议你在onItemLongClick去弹一个AlertDialog,
实现onCreateDialog函数,然后在onItemLongClick中showDialog。
实现onCreateDialog函数,然后在onItemLongClick中showDialog。
……正是楼主要找的