Open adrianmugnoz opened 10 years ago
I have solved it adding the following lines in ResetListItems method inside SwipeListGestures: if(mDismissAnimationRefCount>0) mDismissAnimationRefCount=0;
So finally:
private void ResetListItem(View tempView){ Log.d("Shortlist reset call","Works");
if(mDismissAnimationRefCount>0)
mDismissAnimationRefCount=0;
tempView.animate().translationX(0).alpha(1f).setListener(new AnimatorListenerAdapter(){
@Override
public void onAnimationEnd(
Animator animation) {
super.onAnimationEnd(animation);
int count=mDownView_parent.getChildCount()-1;
for(int i=0;i<count;i++){
View V= mDownView_parent.getChildAt(i);
Log.d("removing child class",""+V.getClass());
mDownView_parent.removeViewAt(0);
}
moptionsDisplay = false;
}
});
stagged_position=-1;
opened_position=-1;
}
And it works perfectly for all the possible cases
Hi adrianmugnoz, I didn't have time to look at this. And Thank you so much for the fix. :-). I'll check the change u made and add the changes.
Hi,
I have detected a problem in the dismiss function. If you setup the SwipeType as Dismiss, when you make swipe on an element of the listview, and touch delete, it works perfectly.
But if you Swipe any element of the listview, and don't touch delete, if you swipe another element of the listview for try to delete, when you touch it does not work.
Btw, thanks you for share this :)