Skip to content

CrescentoImageView does not work with LayerDrawables  #18

@nishtahir

Description

@nishtahir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions