-
Notifications
You must be signed in to change notification settings - Fork 554
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
[5.0.0-b6] Crash during animation (with sticky headers) #78
Comments
Hello @tprochazka, can you be more specific, because you say that you don't add or animate anything, and you just scroll(?), while I think it seems related to the issue 79, when new item and when expandable are used as well. |
I have same issue. After update in StickyHeaderHelper file I only have a log after many time reproduce: ViewHolder in a function return null so that crash. |
I have the same bug. But one different stack trace:
|
it's not fixed in beta 7.. here is mine
|
hi @davideas, can you confirm on this one? |
Well, it is fixed. There was a discussion in the other issue in order to apply a way to receive this new information from the developer, and since I only received 1 feedback I decided to do it that way which I agree. All this is now well documented. also in the release notes. |
@davideas now I am passing true for The first child item is covered by its header, there should be 03PM-04PM below the first header, but if we scroll down and scroll up again, it's fine. Anything I missed? |
Glad to see it works, but regarding the fact the 1st child element appears below at the opening, I do not know. Consider that the headers are inserted after the child elements. |
@huteri If you have set your header view height to wrap_content try to change it. |
Ok, so it the same of issue #121, the fix will be available with next snapshot release. |
Solved, thanks! |
@huteri You're welcome |
Great work! Thank you very much, now it not crashing anymore. |
I also have the same issue , it only happen in 8.0 system |
I tried to integrate FlexibleAdapter because of support for sticky headers and my app start crashing on this error, sometimes when I enter to the screen with RecyclerView. Before I used own adapter implementation without sticky headers and it works correctly. I'm not using any animation for RecyclerVIew. So I don't understand why it happen.
java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams at android.support.v7.widget.RecyclerView.getChildViewHolderInt(RecyclerView.java:3661) at android.support.v7.widget.RecyclerView.removeAnimatingView(RecyclerView.java:1125) at android.support.v7.widget.RecyclerView.access$6400(RecyclerView.java:147) at android.support.v7.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished(RecyclerView.java:10294) at android.support.v7.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished(RecyclerView.java:10794) at android.support.v7.widget.SimpleItemAnimator.dispatchAddFinished(SimpleItemAnimator.java:289) at android.support.v7.widget.DefaultItemAnimator$5.onAnimationEnd(DefaultItemAnimator.java:241) at android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47) at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) 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:224) at android.app.ActivityThread.main(ActivityThread.java:5514) 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)
The text was updated successfully, but these errors were encountered: