java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.ScrollView

Stack Overflow | Melon Therapy | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Kotlinx injects view from wrong layout

    Stack Overflow | 10 months ago | Melon Therapy
    java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.ScrollView

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.FrameLayout cannot be cast to android.widget.ScrollView

      at com.company.app.Activity.isOverflowPanelShown()
    2. com.company.app
      Activity.isOverflowPanelShown
      1. com.company.app.Activity.isOverflowPanelShown(Activity.kt:362)
      1 frame