artem-zinnatullin / jet-image-loader

WP7+ fast and powerfull image loader with memory and storage caching for your projects!
Apache License 2.0
44 stars 14 forks source link

set default/loading/fail-image? #26

Open exean opened 10 years ago

exean commented 10 years ago

Hi,

Is it possible to set specific images to be displayed while an image is loading/loading failed/etc.?

Android-Universal-Image-Loader has this option in DisplayImageOptions via: .showImageOnLoading(R.drawable.ic_stub) // resource or drawable .showImageForEmptyUri(R.drawable.ic_empty) // resource or drawable .showImageOnFail(R.drawable.ic_error) // resource or drawable

Thanks for this great project & your hard work!

artem-zinnatullin commented 10 years ago

It's not possible via JetImageLoader at the moment :(

I'll definitely add this feature.

In last project I used this technique:

<Grid>
    <Image /> <!-- default image -->
    <Image /> <!-- image loaded via JetImageLoader -->
</Grid> 
exean commented 10 years ago

Thanks, that's also the approach i'm currently using :)

factormystic commented 10 years ago

+1 some kind of default/loading image property would be clutch