syedowaisali / crystal-range-seekbar

537 stars 164 forks source link

can't set left/right thumb with shape drawable xml #108

Open vietnguyen312 opened 6 years ago

vietnguyen312 commented 6 years ago

When I try to set left/right thumb with shape drawable xml, App crashes and raise following problem: Caused by: java.lang.ClassCastException: android.graphics.drawable.LayerDrawable cannot be cast to android.graphics.drawable.BitmapDrawable

Here is my shape drawable xml: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">

<size
    android:width="10dp"
    android:height="10dp" />
<stroke
    android:width="1dp"
    android:color="@color/colorPrimary" />