'Failed to start Activity from Horizontal Recyclerview last item
I'm trying to start another activity by clicking on last item of horizontal recycler view. All other items on click starts the expected activity but not the last item. I'm loading items into Recycler view from firebase realtime successfully.
Output image
I'm getting following exception and app crash immediately.
E/AndroidRuntime: at com.android.internal.policy.DecorView.onLayout(DecorView.java:779)
at android.view.View.layout(View.java:22470)
at android.view.ViewGroup.layout(ViewGroup.java:6303)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3154)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2611)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1742)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7778)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1041)
at android.view.Choreographer.doCallbacks(Choreographer.java:864)
at android.view.Choreographer.doFrame(Choreographer.java:798)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1026)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7398)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
My specs:
- Android arctic fox 2020.3.1
- Android version 10
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

