简体   繁体   English

使用速记十六进制颜色 Glide 的 SVG 问题

[英]SVG issue with Glide using Shorthand Hexadecimal Colors

I'd like to render SVG assets which use the short hex format as fill color and just discovered the following issue with Glide (4.9.0): #3094 (comment)我想渲染使用短十六进制格式作为填充颜色的 SVG 资产,并且刚刚发现 Glide (4.9.0) 存在以下问题: #3094(评论)

Can I set Glide to accept the short hex colors or is there a workaround to avoid changing every SVG file to the six digits hex format?我可以将 Glide 设置为接受短十六进制颜色还是有一种解决方法可以避免将每个 SVG 文件更改为六位十六进制格式?

You are probably using AndroidSVG for the SVG rendering.您可能正在使用 AndroidSVG 进行 SVG 渲染。 At least that's what the Glide example uses.至少这就是 Glide 示例使用的内容。 Make sure you are using AndroidSVG 1.3 or later.确保您使用的是 AndroidSVG 1.3 或更高版本。 There was a bug in v1.2 with three-digit colour parsing. v1.2 中存在三位数颜色解析的错误。

http://bigbadaboom.github.io/androidsvg/release-1.3.html http://bigbadaboom.github.io/androidsvg/release-1.3.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM