-
Notifications
You must be signed in to change notification settings - Fork 13
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
Subclass ViewTarget #3
Comments
Similar problem. Trying to extend SimpleTarget so I can save the image to disk, but can't override OnResourceReady and get the same error as OP when compiling. |
Thanks, I will look into that and will notify you. |
Same here... Would be great to derive from BasicTarget and override onResourceReady Unless you tell me there's a better way to use Glide to set the background of a Layout Thanks in advance! |
It seems that SimpleTarget and BaseTarget are abstract classes. The Xamarin binding has problems with abstract classes and methods with abstract input types. In theory it should generate something with a Java.Lang.Object as type but appearantly it doesn't. Not sure how to fix. Any suggestions? |
As @Speedrockracer said, I had to disable a few methods in Transforms file. Glide is quite complicated library compared to Picasso so I will ask to someone from Xamarin team and maybe they will recommend an intuitive idea. |
I tried to fix the binding but didn't have any success there. It is indeed very complicated. Also tried the following workaround. Very hacky and it didn't work. Wont even go into the SetResource method.. but crashes with a ClassCastException. Maybe someone here gets inspired and can make it work? I'm trying to load the resulting bitmap in a SubsampelingScaleImageView for zooming. If someone knows a better way without using glide feel free to drop me a line.
|
I've updated to 3.8.0 and haven't tested yet. Could you give a chance to see that helps ? |
I'm trying to port this code to C# and this is what I've got so far
When I build the project, this error pops up
I looked into binding interface Com.Bumptech.Glide.Request.Target.ITarget and couldn't find that abstract method but it does exist in java code. I guess the generic type
Transition<? super R> transition
is the cause. If so, is there any solution to this?The text was updated successfully, but these errors were encountered: