java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams

GitHub | huteri | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 78#229548810

    GitHub | 11 months ago | huteri
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams
  2. 0

    GitHub comment 78#221847204

    GitHub | 12 months ago | gregEstoke
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams
  3. 0

    ClassCastException with StickyHeader: FrameLayout$LayoutParams cannot be cast to RecyclerView$LayoutParams

    GitHub | 7 months ago | jonathanyee
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ImageView drag'n'drop 7.1.1 error

    Stack Overflow | 2 months ago | Alexander L.
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v7.widget.RecyclerView$LayoutParams

      at android.support.v7.widget.RecyclerView.getChildViewHolderInt()
    2. Android v7
      RecyclerViewAccessibilityDelegate$1.onInitializeAccessibilityNodeInfo
      1. android.support.v7.widget.RecyclerView.getChildViewHolderInt(RecyclerView.java:3411)
      2. android.support.v7.widget.RecyclerView$LayoutManager.onInitializeAccessibilityNodeInfoForItem(RecyclerView.java:7643)
      3. android.support.v7.widget.RecyclerViewAccessibilityDelegate$1.onInitializeAccessibilityNodeInfo(RecyclerViewAccessibilityDelegate.java:84)
      3 frames
    3. Android Support v4
      AccessibilityDelegateCompatJellyBean$1.onInitializeAccessibilityNodeInfo
      1. android.support.v4.view.AccessibilityDelegateCompat$AccessibilityDelegateJellyBeanImpl$1.onInitializeAccessibilityNodeInfo(AccessibilityDelegateCompat.java:233)
      2. android.support.v4.view.AccessibilityDelegateCompatJellyBean$1.onInitializeAccessibilityNodeInfo(AccessibilityDelegateCompatJellyBean.java:61)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.View.onInitializeAccessibilityNodeInfo(View.java:5852)
      2. android.widget.LinearLayout.onInitializeAccessibilityNodeInfo(LinearLayout.java:1817)
      3. android.view.View.createAccessibilityNodeInfoInternal(View.java:5815)
      4. android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:21405)
      5. android.view.View.createAccessibilityNodeInfo(View.java:5800)
      6. android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:975)
      7. android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchAccessibilityNodeInfos(AccessibilityInteractionController.java:799)
      8. android.view.AccessibilityInteractionController.findAccessibilityNodeInfoByAccessibilityIdUiThread(AccessibilityInteractionController.java:155)
      9. android.view.AccessibilityInteractionController.access$400(AccessibilityInteractionController.java:53)
      10. android.view.AccessibilityInteractionController$PrivateHandler.handleMessage(AccessibilityInteractionController.java:1146)
      11. android.os.Handler.dispatchMessage(Handler.java:102)
      12. android.os.Looper.loop(Looper.java:135)
      13. android.app.ActivityThread.main(ActivityThread.java:5930)
      13 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
      2 frames