question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gif image show high quality and flashes when scrolling RecyclerView as video shows

See original GitHub issue

Fresco: 0.9.0 Issue: Gif image show high quality and flashes when scrolling RecyclerView as video shows. Seems Gif images doesn’t resize and cache. anglermmb29mtaishanlin01212016190153 Log: D/Charles.Lin: file:///storage/emulated/0/Download/test_image_a.jpg inMemoryCache:true D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/tumblr_n8d80y1BDV1rk9vano1_500.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/tumblr_n2nj3tO0Oh1qjk2rvo1_500.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/florian-1.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/DfQqM.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Tango/IMG_20160105_165156_0_.jpg inMemoryCache:true D/Charles.Lin: file:///storage/emulated/0/DCIM/Tango/IMG_20160105_163839_0_.jpg inMemoryCache:true D/Charles.Lin: file:///storage/emulated/0/DCIM/Tango/IMG_20160105_112223_0_.jpg inMemoryCache:true

Code in bindView:

    Uri imageUri = Uri.fromFile(new File(galleryImage.getPath()));
    boolean inMemoryCache = Fresco.getImagePipeline().isInBitmapMemoryCache(imageUri);
    Log.d("Charles.Lin", imageUri + " inMemoryCache:" + inMemoryCache);

    ImageRequest request = ImageRequestBuilder.newBuilderWithSource(imageUri)
      .setResizeOptions(new ResizeOptions(100, 100))
      .build();
    DraweeController controller = Fresco.newDraweeControllerBuilder()
      .setOldController(mSimpleDraweeView.getController())
      .setImageRequest(request)
      .setAutoPlayAnimations(false)
      .build();
    mSimpleDraweeView.setController(controller);

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
oprisnikcommented, Jul 17, 2017

We’ve released Fresco v1.4.0, which includes a new implementation for animated GIFs that is way more performant, especially in the case where you display multiple GIFs. Let us know if you’re still experiencing problems with 1.4.0.

0reactions
brentvatnecommented, Feb 16, 2016

@plamenko - it’s worth mentioning also that this is an issue with react-native when using removeClippedSubviews on a ListView.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gif blinking in RecyclerView using Fresco - Stack Overflow
I use Fresco to load gif in a Recyclerview. ... I don't play the gif, I just load it as a static image....
Read more >
Reveal or hide a view using animation - Android Developers
There are three common animations to use when showing or hiding a view. You can use the circular reveal animation, a crossfade animation,...
Read more >
How to hide/show Toolbar when list is scrolling (part 2)
It's just a RecyclerView and a Toolbar (we will add Tabs later). Notice that I'm using the second method (with adding padding to ......
Read more >
Android RecyclerView, Android CardView Example Tutorial
As the name suggests, Android RecyclerView is used to reuse cells when scrolling up and down by recycling the items in the list....
Read more >
Untitled
Star wars cotton fabric, Co video, Hallaschka facebook, Vomiting on zee tv, 2gb ddr ram price in delhi, I love brazil pictures, Film...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found