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

Filtering out unwanted native libraries in Fresco

Looking at generated APK, I can see that Fresco comes with native libraries for some popular image formats. How do I keep only one (e.g. WebP) and exclude the rest? Note: I'm not talking about CPU architecture, which I already handle using split.
wiradikusuma
  • 1,930
  • 4
  • 28
  • 44
0
votes
1 answer

Fresco crossfading within a DraweeHolder

I'm using DraweeHolder in my custom view to display image. When I want to update the image with a new resource, I create a new DraweeController, then setController to the DraweeHolder. What I'm trying to implement is the crossfading effect between…
shawn_wx
  • 133
  • 1
  • 11
0
votes
1 answer

How to modify down-sampled bitmap with Fresco Android?

I want to display image from internet with blur effect. I configured Fresco: ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this) .setDownsampleEnabled(true) .build(); Fresco.initialize(this, config); Load and display…
VAdaihiep
  • 521
  • 9
  • 19
0
votes
1 answer

Fresco-CustomView that extends view can not display image

I want to create a customize view that extends view and have the fresco function. The image can be download , but can not be display. Please help me, the code is below: public class QView extends View { private…
Hilda
  • 45
  • 1
  • 7
0
votes
1 answer

Resizing images using Fresco library in Java

I'm using Fresco library by Facebook to load and show image from URL. Uri uri = Uri.parse(image_url); imageView.setImageURI(uri); How can I resize this image in java?
Ronn
  • 183
  • 2
  • 13
0
votes
1 answer

Fresco doesn't load images in GridView

This is my getView function in the image adapter. The GridView seems empty. What am I doing wrong? @Override public View getView(int position, View convertView, ViewGroup parent) { //ImageView view = (ImageView) convertView; DraweeView view…
Hemant Singh
  • 924
  • 1
  • 6
  • 13
0
votes
1 answer

SimpleDraweeView in ListView Item Display Wrong

I used SimpleDraweeView in ListView Item. If the header url is not null, it will display the image from the network, or it will display the default image from local drawable. The code is as follow: @Override public View getView(int position,…
Freddy
  • 764
  • 2
  • 6
  • 21
0
votes
1 answer

How to use Fresco in custom view?

I am building a canvas game, and I draw images on canvas directly. canvas.drawBitmap(bitmap, matrix, paint); How can I use Fresco in order to load those bitmaps?
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
0
votes
1 answer

Fresco - Cancel Prefetch Requests

In my app I was prefetching images so they load faster when user scrolls using prefetchToBitmapCache. Now when user applies a filter, these prefetches remain in pipeline and slow down the loading of new images. How I am prefetching: When use scrolls…
Sourabh
  • 8,243
  • 10
  • 52
  • 98
0
votes
1 answer

Android fresco how to get save cache callback?

I got a question about android fresco library. Do you guys know how to get callback when file is saved in cache? Generally, we could get file from cache: ImageRequest imageRequest= ImageRequest.fromUri(url); CacheKey cacheKey=…
Shumin
  • 991
  • 2
  • 13
  • 22
0
votes
1 answer

DiscCache only first 10 - Fresco

I have implemented a facebook like app. I get data from a server, I display it using a recycler and store it in a sql database via a content provider. If there is no internet active I'm just displaying the stored data via a CursorLoader (10 items).…
Bogdan Daniel
  • 2,689
  • 11
  • 43
  • 76
0
votes
2 answers

How can I get a SimpleDraweeView to display an image properly?

I have a SimpleDraweeView which is inside a Recycler. Recycler: SimpleDraweeView:…
Bogdan Daniel
  • 2,689
  • 11
  • 43
  • 76
0
votes
1 answer

android gif shared element transition

I know how to make shared element transition for image. Is there a way we could do gif shared element transition? When we click on a gif, it pops up to be a fullscreen view. Or could we pause the gif, then do the shared element transition? Any help…
Shumin
  • 991
  • 2
  • 13
  • 22
0
votes
1 answer

Facebook Fresco and Sinch Android

I'm working on a big project and I'm using the Fresco library from Android and also the Sinch Library for Making VoIP calls... I know these two items are not related in any way as their function are way too different, but I found some kind of…
NemesisDoom
  • 596
  • 6
  • 21
0
votes
1 answer

Freso: How can I set the OK Http client?

So some images I request require an authentication header to be added I am using Retrofit 2.0 which has this OkHttp client with a interceptor to add the user token to the header to every request okHttpClient.interceptors().add(new Interceptor() { …
Ersen Osman
  • 7,067
  • 8
  • 47
  • 80