1 lvContentList.setOnItemClickListener(new OnItemClickListener() { 2 3 @Override 4 public void onItemClick(AdapterView<?> arg0, View view, 5 int position, long arg3) { 6 //。。。。。。。23 } 24 });
25lvContentList.setOnItemLongClickListener(new OnItemLongClickListener() { 26 27 @Override 28 public boolean onItemLongClick(AdapterView<?> arg0, View view, 29 int arg2, long arg3) { 30 //....37 return true;//关键地方返回True时OnItemClick就不会响应了 38 } 39 });