java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

Stack Overflow | Shijil | 5 months ago
  1. 0

    ClassCastException in FloatingActionButton

    Stack Overflow | 5 months ago | Shijil
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  2. 0

    ViewPager within AppBarLayout does not work?

    Stack Overflow | 1 year ago | tgalfer
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  3. 0

    Upgrade Android Support library to 24.2.0 makes my app crash

    Stack Overflow | 5 months ago | maohieng
    java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Class cast exception

    GitHub | 3 months ago | Stanly-Mindssoft
    java.lang.ClassCastException: android.support.design.widget.AppBarLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  6. 0

    How to set the margin of a FrameLayout with the height a LinearLayout

    Stack Overflow | 7 months ago | Ozuf
    java.lang.ClassCastException: android.support.design.widget.CoordinatorLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
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.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

    at android.support.design.widget.FloatingActionButton$Behavior.isBottomSheet()
  2. android.support.design
    CoordinatorLayout$OnPreDrawListener.onPreDraw
    1. android.support.design.widget.FloatingActionButton$Behavior.isBottomSheet(FloatingActionButton.java:597)
    2. android.support.design.widget.FloatingActionButton$Behavior.onDependentViewChanged(FloatingActionButton.java:589)
    3. android.support.design.widget.FloatingActionButton$Behavior.onDependentViewChanged(FloatingActionButton.java:528)
    4. android.support.design.widget.CoordinatorLayout.offsetChildToAnchor(CoordinatorLayout.java:1564)
    5. android.support.design.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1233)
    6. android.support.design.widget.CoordinatorLayout$OnPreDrawListener.onPreDraw(CoordinatorLayout.java:1812)
    6 frames
  3. Android Platform
    Looper.loop
    1. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
    2. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2000)
    3. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1084)
    4. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5990)
    5. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    6. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    7. android.view.Choreographer.doFrame(Choreographer.java:550)
    8. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    9. android.os.Handler.handleCallback(Handler.java:739)
    10. android.os.Handler.dispatchMessage(Handler.java:95)
    11. android.os.Looper.loop(Looper.java:135)
    11 frames