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

Question - How can we use SVG ? #33

Open
AntM90 opened this issue Apr 5, 2019 · 5 comments
Open

Question - How can we use SVG ? #33

AntM90 opened this issue Apr 5, 2019 · 5 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@AntM90
Copy link

AntM90 commented Apr 5, 2019

Hi Jonathan,

Thanks for this package ... I've been using FFImageLoading for a long time but many bugs with recents version of Xamarin Forms discouraged me.

I would try your package in my app, but can I use svg files and how can I configure glidex to work like this ?

Thanks :)

@jonathanpeppers
Copy link
Owner

Looks like Glide has a Java sample using SVG files here.

But it looks like you have to write a bunch of code to make it work...

Parts of Glide on the Java side use compile-time annotations, so I'm not sure there is a simple way to set this up with Xamarin.Android. We would have to add a feature to enable javac calls to process custom annotations.

If I have time, I will see if there is a way to make this work without using annotations.

@jonathanpeppers jonathanpeppers added enhancement New feature or request question Further information is requested labels Apr 5, 2019
@themronion
Copy link

@jonathanpeppers now that Xamarin introduced paths maybe it can somehow be achieved?

@jonathanpeppers
Copy link
Owner

@themronion can you share a link of what you are referring to?

Xamarin.Android does not have Java annotation support.

@themronion
Copy link

@jonathanpeppers yeah, sorry, i think it is possible somehow only for xamarin.forms. Here is what i was referring too: click

@jonathanpeppers
Copy link
Owner

Ok yeah, @themronion this looks like it is using <Path/> that came with the new shapes features in Xamarin.Forms 4.8.

I would use <Path/> directly for an .svg file, that seems like a reasonable choice. glidex could be useful at some point if you needed to download .svg files from the internet, but they can also be pretty small in file size compared to other image types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants