TonicArtos / SuperSLiM

A layout manager for the RecyclerView with interchangeable linear, grid, and staggered displays of views, all with configurable section headers including the sticky variety as specified in the material design docs.
http://tonicartos.nz
2.12k stars 297 forks source link

SuperSLIM crash when implement remove item . #178

Closed Nghicv closed 7 years ago

Nghicv commented 8 years ago

when i remove item i have already got a log with bug . i wanto implement SuperSLIM now , so please help me resolve this issue 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:3586) at android.support.v7.widget.RecyclerView$Recycler.recycleView(RecyclerView.java:3535) at com.tonicartos.superslim.LayoutState.recycleCache(LayoutState.java:52) at com.tonicartos.superslim.LayoutManager.scrollVerticallyBy(LayoutManager.java:366) at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2797) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:603) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)