Yes you can use Picasso from https://components.xamarin.com/view/square.picasso and additionally you may look at https://github.com/luberda-molinet/FFImageLoading.
If you want to do it with FFImageLoading, here is the wiki page that explains callbacks: https://github.com/luberda-molinet/FFImageLoading/wiki/API#callbacks
Answers
Yes you can use Picasso from https://components.xamarin.com/view/square.picasso and additionally you may look at https://github.com/luberda-molinet/FFImageLoading.
Ok thanks.
I also need to subscribe to the event of "image load finished"...for example when I load image into an image view and I wanna to do something after loading.
Is there a way to do this using Picasso?
If you want to do it with FFImageLoading, here is the wiki page that explains callbacks: https://github.com/luberda-molinet/FFImageLoading/wiki/API#callbacks
Ok thanks to all, I'm using Picasso now and I understood how to manage callbacks
What made you choose Picasso over FFImageLoading? Do you have any pros-cons comparison?
I tried both Picasso and FFImageLoading.
In Picasso, downloaded images disappear when I scroll back up.
Suggest FFImageLoading which is faster and cache friendly. Tried FFImageLoading in listview to load around 50 images. Its working great.
Refer https://forums.xamarin.com/discussion/58341/ffimageloading-plugin-fast-and-memory-friendly-image-loader-ios-android-forms-windows
I need some urgent help. I want to call a function in picasso library after image has been load but did not find some hint. How to do this?
This is java code and i want to implement in Xamarin.
Picasso.with(getContext())
.load(url)
.into(imageView, new com.squareup.picasso.Callback() {
@Override
public void onSuccess() {
I actually really like Akavache.
I use it for all my mobile caching needs including it's built in image request / caching.
Using the callback is exactly the same as the one override
.into(imgView, () => { /*Success*/ }, () => { /*Error*/ }
Unfortunately there are no error messages to help you solve issues.
If you do want to use the callback, you have to create a new Class extending to Java.Lang.Object, Square.Picasso.ICallback
Like so:
Then you use it like this:
Just use the override and don't go through all the trouble of creating an extra class just for the same outcome.
An absolutely essential thing...... Thanks !!!
An absolutely essential thing...... Thanks !!!
Hi, I read the read me document for Akavache at github and could see that it has not got its full documentation there. Could you please point any proper implementation of Akavache for Xamarin.Android/IOS. I would like to use it for image cacheing and also for cacheing objects received via http requests for certain amount of time. Thank you
help
please code in c#
!!!!
Glide.with(this)
.load(GlideActivityA.FOX_PIC_URL)
.centerCrop()
.dontAnimate()
.listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target target, boolean isFirstResource) {
supportStartPostponedEnterTransition();
return false;
}
@Override
public boolean onResourceReady(GlideDrawable resource, String model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
supportStartPostponedEnterTransition();
return false;
}
})
.into(imageView);