Crescento icon indicating copy to clipboard operation
Crescento copied to clipboard

CrescentoImageView does not work with LayerDrawables

Open nishtahir opened this issue 5 years ago • 0 comments
trafficstars

When attempting to use a <layer-list> drawable xml file, I get an issue similar to #9. Which I believe is caused by this not being assignable to LayerDrawable.

Caused by: java.lang.ClassCastException: android.graphics.drawable.LayerDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
    at com.example.CrescentoImageView.init(CrescentoImageView.java:174)
    at com.example.CrescentoImageView.<init>(CrescentoImageView.java:111)
    ... 46 more

A work around was to use CrescentoContainer with an ImageView inside instead.

nishtahir avatar Sep 24 '20 18:09 nishtahir