turing-tech / MaterialScrollBar

An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.
Apache License 2.0
779 stars 126 forks source link

Error on setting handle colour #58

Closed createS0ftware closed 8 years ago

createS0ftware commented 8 years ago

HI

I keep getting the error :

" java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.GradientDrawable at com.turingtechnologies.materialscrollbar.Indicator.linkToScrollBar(Indicator.java:74) at com.turingtechnologies.materialscrollbar.MaterialScrollBar$2.onLayoutChange(MaterialScrollBar.java:547) at android.view.View.layout(View.java:16645)"

What am i missing - the code is almost identical to the demo code

Thanks

createS0ftware commented 8 years ago

In the Indicator class it always seems to find Bitmap drawable as the background though it is setting the same one in the demo app as in my app

createS0ftware commented 8 years ago

It's ok i had a duplicate name drawable