-
Notifications
You must be signed in to change notification settings - Fork 308
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
如何在composeResource里解码svg文件? #222
Labels
Comments
使用 newComposeResourceUri() 创建专用 uri 即可,参考文档如下: |
目前是这样的: rememberAsyncImagePainter(
request = ComposableImageRequest(
uri = Res.getUri("drawable/copy.svg")
)
) 有没有办法可以传入DrawableResource(如 |
uri 只能接收 String |
那希望可以做一个接收DrawableResource参数以返回可绘制svg的Painter(
|
你的主要目的是什么?由于无法访问 DrawableResource 的 ID,就拿不到图片的真实 uri,就无法在加载过程中访问原始文件流。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rt(
The text was updated successfully, but these errors were encountered: