Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

animateLayoutChanges -> exception #38

Closed
adrianaisemberg opened this issue Nov 27, 2016 · 4 comments
Closed

animateLayoutChanges -> exception #38

adrianaisemberg opened this issue Nov 27, 2016 · 4 comments

Comments

@adrianaisemberg
Copy link

java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5420)
at android.support.v7.widget.RecyclerView$Recycler.recycleView(RecyclerView.java:5364)
at android.support.v7.widget.RecyclerView$LayoutManager.removeAndRecycleView(RecyclerView.java:7698)
at org.zakariya.stickyheaders.StickyHeaderLayoutManager.recycleViewsOutOfBounds(StickyHeaderLayoutManager.java:624)
at org.zakariya.stickyheaders.StickyHeaderLayoutManager.scrollVerticallyBy(StickyHeaderLayoutManager.java:435)
at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1640)
at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2759)
at android.view.View.dispatchTouchEvent(View.java:10023)

@adrianaisemberg
Copy link
Author

I'd like to see new/deleted items animated.

@ShamylZakariya
Copy link
Owner

Can you provide sample code to replicate this?

@adrianaisemberg
Copy link
Author

adrianaisemberg commented Nov 29, 2016 via email

@ShamylZakariya
Copy link
Owner

Ok, cool. I've seen a lot of issues with RecyclerView crashing when certain types of changes happen during a scroll (while the user's finger is still touching the screen). The newer recyclerview 25.0.1 seems to fix some of these.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants