java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.GradientDrawable

GitHub | createS0ftware | 8 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

    Error on setting handle colour

    GitHub | 8 months ago | createS0ftware
    java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.GradientDrawable

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.GradientDrawable

      at com.turingtechnologies.materialscrollbar.Indicator.linkToScrollBar()
    2. com.turingtechnologies.materialscrollbar
      MaterialScrollBar$2.onLayoutChange
      1. com.turingtechnologies.materialscrollbar.Indicator.linkToScrollBar(Indicator.java:74)
      2. com.turingtechnologies.materialscrollbar.MaterialScrollBar$2.onLayoutChange(MaterialScrollBar.java:547)
      2 frames