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
0
votes
1 answer

Fresco randomly set uri from cache if drawee view never call .setImageUri(uri)

We have a customised base class for creating a single cell inside a recyclerview: public abstract class RecyclerViewItem implements RecyclerViewItemInterface { @Override public int getTypeId() { …
Seto
  • 1,234
  • 1
  • 17
  • 33
0
votes
1 answer

How to preserve aspect ratio of overlay image in Fresco

I am trying to set the scale type of an overlay image in Fresco. But there is no field in the SimpleDraweeView to set the scaletype of its overlay image
Nirav Sanghvi
  • 408
  • 3
  • 14
0
votes
2 answers

Creating an image out of text?

I want to create an image out of some text. For example, in this photo I have shown here, I want to make it so that I have an image or some sort of text view that shows a plus sign and then I would programmatically set the number in my code in that…
user1871869
  • 3,317
  • 13
  • 56
  • 106
0
votes
1 answer

Displaying Multiple GIF and/or WEBP at the same time using Fresco

I'm using Fresco to load and display GIF and WEBP for my app. I have a Gridlayout where I display a list of GIF and WEBP. Images are animating as intented but one thing I notice is that they are not animated at the same time. Some images wait for…
kishidp
  • 1,918
  • 6
  • 23
  • 29
0
votes
1 answer

Loading and resizing photos using fresco library

I want to make multiply loading of photos in each cardView at my news feed, like at facebook application. I found fresco library, but I don't have an algorithm to doing such loading and resizing. Help me please.
Tom Wally
  • 542
  • 3
  • 8
  • 20
0
votes
2 answers

Bitmap too large to be uploaded into a texture (4096 x 4096)

I am working on an app where I have to download images from internet and display them inside the app, I am using Universal Image Loader so far, but recently I ran into an issue where the app would not display the images which are huge in size for…
TilalHusain
  • 1,006
  • 5
  • 17
  • 36
0
votes
1 answer

DraweeView scale fit width

How can I scale an image loading into a DraweeView so that the width is always fitted? The DraweeView is configured like this:
Eric Brandwein
  • 861
  • 8
  • 23
0
votes
1 answer

Fresco doesn't show image

I'm trying to show image in RecyclerView using Fresco. I have image in my file system and i want to display it in SimpleDraweeView by image location in String format. But in this view i have empty image. Log doesn't show any error. Can anyone help…
Vanya Sakharovskiy
  • 295
  • 1
  • 3
  • 16
0
votes
0 answers

Using Fresco with StaggeredGridLayoutManager cause moving items

Here is the issues on github I want to make a gallery with using Fresco and recyclerview. But when I notifyDataSetChange() and then scroll to the top of the list that I can see the items are moving. Like this. What I have tried: I have tried to…
0
votes
1 answer

Fresco image not visible in Recyler View on Android Jellybean devices

While loading image a thin line appears and the image is not visible while using fresco in a RecyclerView on Android Jellybean devices but the same works on KitKat+ devices. Samsung - 4.1.1 - API 16 - 768 X 1280 SamsungGalaxyNote2 - 4.3 - API 18…
Prabhu Konchada
  • 548
  • 8
  • 26
0
votes
0 answers

How to create a CloseableReference with Fresco

i want to create a CloseableReference when i implement a PlatformBitmapFactory the method .of have two implements, if i use the first one private PlatformBitmapFactory bmpFactory = new PlatformBitmapFactory() { @Override public…
matsui Cao
  • 57
  • 1
  • 10
0
votes
1 answer

Android Fresco: Error inflating class com.facebook.samples.zoomable.ZoomableDraweeView

I want to create application using Fresco library with zoom functionality using ZoomableDraweeView but when I start my application, application got crashed. Below is my code so please help me to solve this issue and thanks in advance. public class…
Mohd Sakib Syed
  • 1,679
  • 1
  • 25
  • 42
0
votes
1 answer

Fresco using DataSubscriber to load gif

I wanna get the gif through DataSubscriber by Fresco.But when i get the CloseableAnimatedImage, I don't know how to get the bitmap of it. public void getBitmap(String url, final OnBitmapFetchedListener listener) { ImageRequest…
Allen Vork
  • 1,536
  • 3
  • 16
  • 29
0
votes
1 answer

Use fresco (facebook image library) to get scaled portion from the entire original image

Basically i i have source image and i want to get scaled down region from the entire image. In the end i am expecting scaled down portion with same aspect ratio as that that of entire source image. Is it possible? If so please guide me what should i…
asad
  • 281
  • 4
  • 11
0
votes
1 answer

Fresco prefetch multiple pictures,How to listen progress?

I try user DataSource dataSource dataSource.getProgress(),but getProgress() return 0.0,Log print only once. so,what am I to do?