I am using SwipeListView for my Android App. But now i need to detect the swipe action on each row of this list view.
Thank for any help.
New Update
i already tried to override the listener or listen on each lsit item when i create them. But all of them are impossible:
I implement listener on each item : holder is ViewHolder. This is a part of code in my Adapter class.
holder.frontView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
if(event.getAction() == MotionEvent.ACTION_CANCEL) {
CLog.d(tag, "Item up");
}
CLog.d(tag, "Item Touch " + event.getAction());
return false;
}
});
It so hard to detect when user swipe the item or scroll the list. the above code always print log "Item touch" when i swipe the items or scroll the list.