在onItemLongClick关键处返回true即可
listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {@Overridepublic boolean onItemLongClick(AdapterView> adapterView, View view, int i, long l) {......return true;}});listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {@Overridepublic void onItemClick(AdapterView> adapterView, View view, int i, long l) {......}});