java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

Stack Overflow | Akshay Sood | 2 months ago
  1. 0

    Android RelativeLayout.LayoutParams can not cast to AbsListview.LayoutParams (Error below 4.4.4) Working fine on 5.0 & 6.0.1

    Stack Overflow | 2 months ago | Akshay Sood
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  2. 0

    GitHub comment 12#71383608

    GitHub | 2 years ago | daneren2005
    java.lang.ClassCastException: github.daneren2005.dsub.view.HeaderGridView$HeaderViewGridAdapter cannot be cast to android.widget.BaseAdapter
  3. 0

    android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

    Stack Overflow | 2 years ago | Hetiwos
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

    goobbe.com | 1 year ago
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  6. 0

    android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

    goobbe.com | 12 months ago
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

  1. filpgame 2 times, last 3 weeks ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

    at android.widget.ListView.setupChild()
  2. Android Platform
    ViewGroup.layout
    1. android.widget.ListView.setupChild(ListView.java:1849)
    2. android.widget.ListView.makeAndAddView(ListView.java:1816)
    3. android.widget.ListView.fillDown(ListView.java:697)
    4. android.widget.ListView.fillFromTop(ListView.java:763)
    5. android.widget.ListView.layoutChildren(ListView.java:1641)
    6. android.widget.AbsListView.onLayout(AbsListView.java:2603)
    7. android.view.View.layout(View.java:15859)
    8. android.view.ViewGroup.layout(ViewGroup.java:4902)
    8 frames
  3. Android Support v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:598)
    1 frame
  4. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15859)
    2. android.view.ViewGroup.layout(ViewGroup.java:4902)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
    6. android.view.View.layout(View.java:15859)
    7. android.view.ViewGroup.layout(ViewGroup.java:4902)
    8. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
    9. android.view.View.layout(View.java:15859)
    10. android.view.ViewGroup.layout(ViewGroup.java:4902)
    11. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    12. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    13. android.view.View.layout(View.java:15859)
    14. android.view.ViewGroup.layout(ViewGroup.java:4902)
    15. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
    16. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1666)
    17. android.widget.LinearLayout.onLayout(LinearLayout.java:1442)
    18. android.view.View.layout(View.java:15859)
    19. android.view.ViewGroup.layout(ViewGroup.java:4902)
    19 frames
  5. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1191)
    1 frame
  6. Android Platform
    Looper.loop
    1. android.view.View.layout(View.java:15859)
    2. android.view.ViewGroup.layout(ViewGroup.java:4902)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    5. android.view.View.layout(View.java:15859)
    6. android.view.ViewGroup.layout(ViewGroup.java:4902)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
    10. android.view.View.layout(View.java:15859)
    11. android.view.ViewGroup.layout(ViewGroup.java:4902)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    14. android.view.View.layout(View.java:15859)
    15. android.view.ViewGroup.layout(ViewGroup.java:4902)
    16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
    17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
    18. android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
    19. android.view.View.layout(View.java:15859)
    20. android.view.ViewGroup.layout(ViewGroup.java:4902)
    21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    22. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    23. android.view.View.layout(View.java:15859)
    24. android.view.ViewGroup.layout(ViewGroup.java:4902)
    25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2376)
    26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2089)
    27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1264)
    28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6632)
    29. android.view.Choreographer$CallbackRecord.run(Choreographer.java:813)
    30. android.view.Choreographer.doCallbacks(Choreographer.java:613)
    31. android.view.Choreographer.doFrame(Choreographer.java:583)
    32. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:799)
    33. android.os.Handler.handleCallback(Handler.java:733)
    34. android.os.Handler.dispatchMessage(Handler.java:95)
    35. android.os.Looper.loop(Looper.java:146)
    35 frames