I am trying to replace mutiples images (from local storage) using the same
After a while the black flickering disappear and works well.
See the video: http://sendvid.com/q92ry52l
I am only doing:
mSimpleDraweeView.setImageURI("file://" + imagesList.get(index));
<?xml version="1.0" encoding="utf-8"?>
Unfortunately this is a known issue. If you set a new URI, you'll see the placeholder image until the new image is ready. This is especially noticeable when you have large images and you switch them a lot (like in your example).
We are going to fix this at some point in the future (see this pull request).
For now, you can manually copy the
RetainingDataSourceSupplier implementation from said pull request to your project and use it similar to the
PipelineDraweeControllerBuilder builder = Fresco.newDraweeControllerBuilder()... builder.setDataSourceSupplier(retainingDataSourceSupplier); draweeView.setController(builder.build());