How to handle delete using swipe left in android device?

I need to apply swipe left to delete an list item but it is not working using Mobile.swipe(int x, int y, int x1, int y1). Please help me out for this.