Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrescentoImageView does not work with LayerDrawables #18

Open
nishtahir opened this issue Sep 24, 2020 · 0 comments
Open

CrescentoImageView does not work with LayerDrawables #18

nishtahir opened this issue Sep 24, 2020 · 0 comments

Comments

@nishtahir
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant