-
Notifications
You must be signed in to change notification settings - Fork 377
6i4NNi edited this page Jul 5, 2017
·
2 revisions
When fling or scrolling listview, images are recycled, user can see the old image before the new one loads (about 0.5 ~2 seconds), causing flicker and unpleasant artifacts for the user. How to avoid it?
Two solutions:
- Set any placeholder
- Set image source to null before loading actual image:
Xamarin.Forms:
cachedImage.Source = null;
Native:
ImageService.Instance.LoadFile(null).Into(imageView);