locked
How to download image on View is displayed using FFImageLoading RRS feed

  • Question

  • User8854 posted

    @DanielL I have a ScrollView (horizontal) with X CachedImage and I need to download the image when the view is displayed not when the object is initialised. It is possible?

    Wednesday, March 16, 2016 4:39 PM

Answers

  • User2773 posted

    Just use ScrollView scrolled event. If the image X position is less or equal than current scroll position + eg. half of scroll size then just set image source.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, March 16, 2016 4:42 PM

All replies

  • User2773 posted

    Just use ScrollView scrolled event. If the image X position is less or equal than current scroll position + eg. half of scroll size then just set image source.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, March 16, 2016 4:42 PM
  • User8854 posted

    @DanielL I'm trying exactly that, I just read this https://github.com/molinch/FFImageLoading/wiki/Advanced-Usage#scroll-high-performances and I was thinking in something similar for Xamarin.Forms

    Thanks anyways! You're the best! :smile:

    Wednesday, March 16, 2016 4:46 PM
  • User2773 posted

    @DavidTavarez That just cancels all current image loading tasks, and allows you to call you custom logic to reload them later (eg. ListView ItemAppearing event).

    We're planning to add image loading delay, it could help in future but it's not implemented yet. We have to do some research for a possible solutions first. See here: https://github.com/molinch/FFImageLoading/issues/161

    Wednesday, March 16, 2016 4:51 PM