when i click my list view item it calls onitemclick listener but when i click item long it calls both initemclick and onitemlongclick listeners. how to solve only call onitemlongclick listener when it long press?
list.setOnItemClickListener(new OnItemClickListener()
{
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
//my code
}
});
list.setOnItemLongClickListener(new OnItemLongClickListener() {
public boolean onItemLongClick(AdapterView<?> arg0, View arg1,int arg2, long arg3) {
//my code
}
}