New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] Swipe animation not like example #199

narxeba opened this Issue Feb 28, 2016 · 2 comments


None yet
2 participants

narxeba commented Feb 28, 2016

I'm using swipe on recyclerview. I set holder.setSwipeItemHorizontalSlideAmount(0) at onBindViewHolder but animation not like example. If not set holder.setSwipeItemHorizontalSlideAmount(0), item view doesn't remove. Here is my video that shows problem:
Youtube Link
Please help me :'(

@h6ah4i h6ah4i added the question label Feb 28, 2016

@h6ah4i h6ah4i self-assigned this Feb 28, 2016


This comment has been minimized.


h6ah4i commented Feb 28, 2016

Hi. It seems that your adapter does not implement getItemId() method properly.

    public long getItemId(int position) {
        // return position; <- this is not stable!

        // should returns stable value. IDs have to be kept the same value 
        // even after its position has been changed.
        return mItems.get(position).getId();

related issues:

  • Help!! #180
  • Swipe state not working properly #170
  • swiping on any item only moves index 1 #159
  • Unnecessary animation on drag #83
  • Position Changing Between List Item #22
  • Issues with stable ids #7
  • Repeated animation problem #5

This comment has been minimized.

narxeba commented Feb 28, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment