Open shaz-tech opened 6 years ago
replace brewAndStartAnimator like this:
private void brewAndStartAnimator(int dur, int finalXorY) {
if (animator != null && animator.isRunning())
animator.cancel();
animator = ObjectAnimator.ofInt(StackLayoutManager.this, "animateValue", 0, finalXorY);
animator.setDuration(dur);
animator.start();
animator.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
lastAnimateValue = 0;
}
@Override
public void onAnimationCancel(Animator animation) {
lastAnimateValue = 0;
}
});
}
Cards are overlapping and getting stuck over others while scrolling and release in the middle of the screen and sometimes in fast scroll.