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

Stack Overflow | Daniel Loaiza | 7 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

    How to solve ClassCastException for LinearLayout.LayoutParams vs CoordinatorLayout.LayoutParams

    Stack Overflow | 7 months ago | Daniel Loaiza
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.LinearLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

      at android.support.design.widget.FloatingActionButton$Behavior.isBottomSheet()
    2. android.support.design
      FloatingActionButton$Behavior.onDependentViewChanged
      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)
      3 frames