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

Stack Overflow | Daniel Loaiza | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 8 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