listView.setOnItemLongClickListener(onItemLong);
/** * 長按轉編輯模式 */private AdapterView.OnItemLongClickListener onItemLong = new AdapterView.OnItemLongClickListener(){ public boolean onItemLongClick(AdapterView parent, View view, int position, long id) { listViewLongClick(); return true; } };public void listViewLongClick() {}
沒有留言:
張貼留言