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

Stack Overflow | Luftbaum | 4 months ago
  1. 0

    ClassCastException for LayoutParams from Android itself

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

    ClassCastException when using LinearLayout.LayoutParams

    Stack Overflow | 4 years ago | tolgap
    java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams
  3. 0

    ClassCastException android.widget.AbsListView$LayoutParams to android.widget.GridLayout$LayoutParams is this exception specific to API level?

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

    Automated exception search integrated into your IDE

  5. 0

    Changing layout parameters inside a fragment with a button's onClick method

    Stack Overflow | 3 years ago | Suhrahj Rothgar
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams
  6. 0

    Issue 80186 - android - Support v7 ActionBarOverlay bug - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams

  1. Bassiuz 1 times, last 5 months 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.support.v4.view.ViewPager$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams

    at android.widget.LinearLayout.measureVertical()
  2. Android Platform
    View.measure
    1. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    2. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    3. android.view.View.measure(View.java:17430)
    3 frames
  3. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1489)
    1 frame
  4. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:17430)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
    3 frames
  5. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:124)
    1 frame
  6. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:17430)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
    2 frames
  7. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:393)
    1 frame
  8. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:17430)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
    4. android.view.View.measure(View.java:17430)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    9. android.view.View.measure(View.java:17430)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
    11 frames
  9. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2560)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:17430)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2001)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1166)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1372)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    9. android.view.Choreographer.doFrame(Choreographer.java:550)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:135)
    14. android.app.ActivityThread.main(ActivityThread.java:5221)
    14 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    2 frames