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
1
vote
1 answer

How to move loading progress bar to top?

I'm using fresco library to load images from web.Also fresco supports show loading bar to give user info how much downloaded is image.But default position of progress bar is bottom and i wanna move it to top.How can i do that? I read somewhere i…
uzaysan
  • 583
  • 1
  • 4
  • 18
1
vote
0 answers

Fresco high memory usage

We have set-up Fresco using the steps mentioned in the documentation here - http://frescolib.org/docs/configure-image-pipeline.html. ImagePipelineConfig config = ImagePipelineConfig .newBuilder(this) …
SaiwT
  • 11
  • 1
1
vote
1 answer

How to set image in RecyclerView adapter from JSON data?

I am trying to load an image (retrieved from JSON data) into every item in my RecyclerView using the Fresco library. Only the placeholder image is being displayed for every item, not the images from the URLs that I would like. I have…
knjk04
  • 115
  • 2
  • 11
1
vote
0 answers

Fetch GIF File in Fresco With Kotlin

I have a recyclerview that displays a list of images in the GIF format using Fresco, a library for Android. When the user clicks on an image in the recyclerview, I need to be able to fetch the .gif file and store it as somename.gif I tried this…
Foobar
  • 7,458
  • 16
  • 81
  • 161
1
vote
1 answer

Fresco load image from sdcard

I'm using fresco library and i'm trying to read an image from sd card into an imageview. var CatalogCategories = System.IO.Path.Combine(Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryPictures).ToString(),…
testsc
  • 71
  • 7
1
vote
1 answer

Loading BitmapDrawable in Fresco

So i basically have method which converts one image with some shape and than makes Drawable from my bitmap. Now there was method load bitmap drawable (setImageDrawable) but its deprecated. So code is like this: public static Drawable…
HyperX
  • 1,121
  • 2
  • 22
  • 42
1
vote
1 answer

Animated gif not working in RN 0.51

I have added compile 'com.facebook.fresco:fresco:1.3.0' compile 'com.facebook.fresco:animated-gif:1.3.0' compile 'com.facebook.fresco:animated-base-support:1.3.0' in my build.gradle file and -keep class…
Ajitej Kaushik
  • 932
  • 9
  • 30
1
vote
2 answers

image download in fresco lib

I have a recycler view that renders a list with an image and text. This image url is retrieved from the file server by passing the image_ID and then this url is used to download the actual image. Can this be done using fresco lib? Can anyone…
vineeth
  • 641
  • 4
  • 11
  • 25
1
vote
0 answers

Google map marker with Fresco for android

I try to display images from internet in Google map marker using Fresco (following this guide), but only a placeholder is displayed. In callback marker is redrawing. Fresco's DraweeView is working fine with my url. My marker: public class…
JJoe
  • 175
  • 6
1
vote
1 answer

How to add Fresco source into another project via Gradle

I can build Fresco from source as directed on its own official site. However I cannot add its source as a project into my build.gradle. When trying to build the project it throws an exception as the below: FAILURE: Build failed with an exception. *…
efkan
  • 12,991
  • 6
  • 73
  • 106
1
vote
1 answer

Fresco consumes more memory for image caching?

I am working on one of the chat application where images are getting downloaded. Recently I switched to Fresco for memory caching. I am not using Fresco to download images However using fresco to view images by creating URI using already downloaded…
Piyush
  • 113
  • 1
  • 2
  • 8
1
vote
2 answers

How to use fresco in recyclerview to gain best performance?

I have a recyclerview that has many images and I used fresco to load images. but when I use the placeholder for images, my recyclerview slows down and lags. I set a placeholder for the image in XML layout. I try that at code too and I have a problem…
1
vote
1 answer

Fresco is not load to my App in Android studio

I installed Frescos's library as the website said and I went to add then it say…
1
vote
0 answers

Space in image url returning broken image for certain devices alone

I am working on an android app which uses FRESCO image loading library. I display images from the server in grid layouts. It so happened that image url's for a certain album had space included in the url. The images were loaded properly in certain…
1
vote
1 answer

Android ui test with espresso cannot use fresco SimpleDreweeView

Now i want to use espresso to test my app ui, but when i use fresco library, as one SimpleDreweeView in xml, the espresso will be failed with errors: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating…
yu wang
  • 283
  • 1
  • 6