java.lang.ClassCastException: android.support.v4.view.ViewPager$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

Stack Overflow | vicThao | 3 months ago
  1. 0

    Crash after converting Activity to fragment in Async task

    Stack Overflow | 3 months ago | vicThao
    java.lang.ClassCastException: android.support.v4.view.ViewPager$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  2. 0

    Add footerview to custom listview in android

    Stack Overflow | 3 years ago | vjdhama
    java.lang.ClassCastException: android.support.v4.view.ViewPager$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  3. 0

    How to use headers into ListView using standard methods?

    Stack Overflow | 5 years ago | user1134602
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nda.android/com.nda.android.AndroidActivity}: java.lang.ClassCastException: android.view.WindowManager$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException when calling ListView.addHeaderView()?

    Stack Overflow | 5 years ago | howettl
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  6. 0

    Android - Adding a header to a listview

    Stack Overflow | 5 years ago | Robert
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

  1. filpgame 5 times, last 1 month ago
  2. Macapon 2 times, last 8 months ago
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.support.v4.view.ViewPager$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

    at android.widget.ListView.clearRecycledState()
  2. Android Platform
    ListView.setAdapter
    1. android.widget.ListView.clearRecycledState(ListView.java:538)
    2. android.widget.ListView.resetList(ListView.java:524)
    3. android.widget.ListView.setAdapter(ListView.java:468)
    3 frames
  3. com.app.forms
    InventoryReportFragment$FetchData.onPostExecute
    1. com.app.forms.InventoryReportFragment$FetchData.onPostExecute(InventoryReportFragment.java:253)
    2. com.app.forms.InventoryReportFragment$FetchData.onPostExecute(InventoryReportFragment.java:236)
    2 frames