facebook/fresco

SvgDecoderExample limit <svg tag

Ouverte

#2 490 ouverte le 20 avr. 2020

 (2 commentaires) (0 réaction) (0 personne assignée)Java (3 750 forks)batch import
enhancementgood first issuehelp wanted

Métriques du dépôt

Stars
 (17 072 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

We use GitHub Issues for bugs.

If you have a non-bug question, please ask on Stack Overflow: http://stackoverflow.com/questions/tagged/fresco

--- Please use this template, and delete everything above this line before submitting your issue ---

Description

I want use SimpleDraweeView to .setImageURI(Uri.parse("https://www.ups.com/assets/resources/images/UPS_logo.svg")); but the svg file is start with <?xml tag, so SvgDecoderExample.SvgFormatChecker() is block it.

Solution

I try update SvgDecoderExample.java line 33 : private static final String HEADER_TAG = "<svg"; to private static final String HEADER_TAG = "<?xml"; let it thought the cheker, it is visible now.
why you want to block the tag?
The AndroidSVG('com.caverock:androidsvg:1.2.1') lib is work find.

Additional Information

  • Fresco version: 'com.facebook.fresco:fresco:2.0.0'

Guide contributeur