Questions tagged [fresco]

Fresco is an Android library (supports Android 2.3 and above) developed by Facebook and dedicated to image loading. It handles such image operations as downloading, caching, transforming and drawing. Fresco provides useful out of the box features like progressive JPEG streaming and offers a lot of customization.

When handling images on a mobile device, a lot of things can go wrong - from failed network connection up to getting OOM crashes. One may also need to customize an image's appearance for which the Android system provides very few out of the box solutions.

That's basically what Fresco does: loading (network layer), displaying (animated GIF's, circle transformations etc.), handling (memory/disk cache, managing the cache).

Read more:

360 questions
7
votes
2 answers

Playing animated images with RetainingDataSourceSupplier

I'm using fresco to display gifs in a RecyclerView. After the user has tapped an imaged I open a details screen where I should display in the end a high-resolution GIF. If I just load another GIF in the same DraweeView the content will disappear as…
Cristian Holdunu
  • 1,880
  • 1
  • 18
  • 43
7
votes
1 answer

Fresco: Use current image displayed in Drawee as a placeholder for next request

I play multiple images sequentially on the same SimpleDraweeView, the issue is that when submitting a new imageURI request, theSimpleDrweeView will remove the current displayed image and replace it with nothing until the URI is downloaded. So it…
Jimmy
  • 10,427
  • 18
  • 67
  • 122
7
votes
1 answer

Try to fetch bitmap from uri using Fresco

Don't understand the behavior while I am fetching Bitmap using Fresco using ImagePipeline. When I debug my code it is executing onNewResultImpl or onFailureImpl and when I run the application is not working means it is not getting called…
Kaushik
  • 6,150
  • 5
  • 39
  • 54
7
votes
1 answer

ImageView shared element transition (between Activity) starts with wrong scaleType

I found the problem with SimpleDraweeView of fresco at the beginning. However the problem still exists after I replace with android ImageView. So I can't be sure whether the problem is due to Android or just fresco. What the problem is The first…
6
votes
3 answers

Why fresco chose not put bitmap in ashmem on android 5.0 or higher

As Fresco project on git hub said: "In Android 4.x and lower, Fresco puts images in a special region of Android memory. This lets your application run faster - and suffer the dreaded OutOfMemoryError much less often." And from this answer, i know it…
ark338
  • 73
  • 4
5
votes
2 answers

setImageURI(url) is deprecated in Fresco. What to use instead?

I am using Fresco Android Library to get images from URLs. The images I get without any problem, but the thing is that the setImageURI(url) is deprecated. So I could not find what to use instead. To avoid deprecated functions usage in my code.
Armen Hovhannisian
  • 932
  • 1
  • 11
  • 27
5
votes
1 answer

LayoutInflater Exception

Here is the deal, I have a RecycleView Adapter which inflates layout on onCreateViewHolder. When I try to do the following actions in order this happens: Application created without any problem Went into multitasking window Came back to…
Deniz da King
  • 381
  • 1
  • 4
  • 12
5
votes
2 answers

Fresco image loading callback

I have just migrated to the Fresco library for loading images in my app. I need to listen to Image Loading Events, of course I read this article in documentation Listening to download events This is exactly what I need, but.... There few things…
CROSP
  • 4,499
  • 4
  • 38
  • 89
5
votes
3 answers

Shared Element Transition and Fresco not working properly

I have two Activities, both of which contain an image. I am using Fresco to load the image in one activity and Picasso to load image in another activity. Here are the relevant parts of my code: Image in first…
Amit Tiwari
  • 3,684
  • 6
  • 33
  • 75
5
votes
2 answers

Circular Progressbar using Fresco

I need to implement a circular progress bar to be displayed and updated while Fresco downloads the image. The class must extend from Drawable as required by Fresco's method setProgressBarImage(). My class is using Fresco to load the image like the…
Doug
  • 313
  • 3
  • 13
5
votes
1 answer

Error:Execution failed for task ':app:dexDebug'. finished with non-zero exit value 2 with Facebook Fresco

I've read every single thread regarding this issue here and I can't find any answer to my problem. After adding the Fresco lib I'm getting this error when building my app. The problematic line is: compile 'com.facebook.fresco:fresco:0.5.3+' The…
Leonardo
  • 3,141
  • 3
  • 31
  • 60
5
votes
3 answers

why use fresco datasource to get bitmap is empty

Why is bitmap returned in onNewResultImpl null? final ImageView imageView = (ImageView) findViewById (R.id.imageView); ImageRequest request = ImageRequest.fromUri(pic_uri); ImagePipeline imagePipeline = Fresco.getImagePipeline(); DataSource…
mio4kon
  • 1,503
  • 1
  • 10
  • 15
4
votes
2 answers

React Native 0.60.0 & 0.60.x Android For animated GIF support

In latest version of React Native 0.60.x animated GIF is not working I am using following fresco version. compile 'com.facebook.fresco:fresco:1.10.0' compile 'com.facebook.fresco:animated-gif:1.10.0'
Mayuresh Patil
  • 2,072
  • 1
  • 21
  • 44
4
votes
1 answer

How to optimize RecyclerView for images with multiple width:height ratio to avoid jump/lag/jank?

Our app is an image-heavy, fashion-centered app. Its Home screen contains an Instagram-like feed, which loads URL of images from the server and loads it using Glide. Since we're using RecyclerView, the item is redrawn every time it leaves the…
Okihita
  • 167
  • 1
  • 11
4
votes
1 answer

Show GIF image full screen using Fresco library

I'm using Fresco library to show images full screen. How to show animated GIF images full screen using that library? Is there any other optimal solution?
Laura
  • 402
  • 1
  • 7
  • 24
1
2
3
23 24