-
Notifications
You must be signed in to change notification settings - Fork 665
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
[Coil 3] VectorDrawable @Preview doesn't work #2489
Comments
Interesting I wonder if we need to add some special handling for XML drawables inside the preview environment. The current implementation delegates to the same way we load them on a real device so we can ideally keep the loading logic consistent. We probably need to add special handling for this case in here. |
Thank you !!! 🙃🙃 |
@tgyuuAn Were you able to take a look at this issue? |
Unfortunately, I wasn't able to reproduce the issue, and it seems that there are quite a few bugs in the Ladybug version. I'm looking forward to the next version being released soon... |
I have the same issue: I need to wrap all direct vector resources in a Drawable to see them in Preview or in Paparazzi screenshots. Also I can reproduce the bug on LadyBug 2024.2.1 Patch 2 and Meerkat 2024.3.1 Canary 2, so I'm not sure the issue will be fixed with the next Android Studio release. |
Describe the bug
After the last fix, the AsyncImage
@Preview
render started working only for raster images. If we put a VectorDrawable as an argument, it doesn't render the preview image.To Reproduce
Here, in this case,
eu_flag
is WebP andfi_flag
is XML:Here is a preview:
And if I move
fi_flag
to be shown before theeu_flag
, it fails to render both of them:Version
3.0.0-alpha10
The text was updated successfully, but these errors were encountered: