-
-
Notifications
You must be signed in to change notification settings - Fork 21
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] Configuration #14
Comments
So I would need to look into how this actually works ^^ Hopefully it's not some gradle plugin or something that happens at build time? Does Glide use Java reflection to find this type? It might work in Xamarin if I added the binding back for these types, and just documented how to do it. |
The way this works is via "Java Annotation Processing", which happens at build time unfortunately... So when
Then Links on "Java Annotation Processing":
So what do we do?The docs you linked to mention using the "Options" API as an alternate way to configure Glide: http://bumptech.github.io/glide/doc/options.html
The "Options" API is what I used in glidex/glidex.forms/GlideExtensions.cs Lines 33 to 34 in 0dbbebb
I hope this helps, is there a particular feature or toggle you need to set in your app? We may need to expose a set of options in |
Thank you for the quick reply. I need to configure location and size of the disk cache. In addition I have to use custom loaders. I think the only way to achieve this with Glide is to write a small Java wrapper and call this from Xamarin.Android. |
@nasibu post what you get working, or if you get stuck. It might be that I can add something to make this easier to work from C#/Xamarin. |
hah i came here looking for a way to configure glide disk caching on xam.android too. guess i'm out of luck. my issue is that loading images in my recyclerview adapter with glide results in the image not loading when the activity is resumed from the call stack because of some caching error(i presume as nothing else fixed the issue). i used |
@kkarakk can you open a new issue, maybe include a code example? We should just fix the problem so your layout works when resuming. |
Hi Jonathan, great work! I would love to see a fully functional Glide in Xamarin. Is there a way to configure glidex from Xamarin.Android ? I saw, that you excluded the annotation package. But the official documentation says to use
@GlideModule
likefrom Glide Documentation
The text was updated successfully, but these errors were encountered: