为ListView加上长按事件
lvMain.setOnItemLongClickListener(new OnItemLongClickListener() { @Override
public boolean onItemLongClick(AdapterView<?> parent, View view,
int position, long id) {
// TODO Auto-generated method stub
OpenCopyMode();
return false;
} });
来自东子哥的Blog
海峡移动开发技术群:13734312