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

What's wrong about delete Fresco diskcache and calculate size()

I add a Perference in my PerferenceFragment. deleteCache.setOnPreferenceClickListener(preference -> { Fresco.getImagePipeline().clearDiskCaches(); deleteCache.setSummary(String.format(getString(R.string.delete_format),…
ilumer
  • 125
  • 1
  • 11
0
votes
1 answer

Fresco multiple images view

I'm trying to make a customview that displays multiple images into one view with Fresco. I've read the docs and went through some steps but my implementation doesn't seem to work. Here's the code: public class MultiDraweeView extends View { …
Drilon Blakqori
  • 2,796
  • 2
  • 17
  • 25
0
votes
2 answers

ScrollView not scrolling if the content's height is equal to screen height

I am facing a weird problem where this screen is not scrollable. Here is my layout:
Amit Tiwari
  • 3,684
  • 6
  • 33
  • 75
0
votes
1 answer

Nativescript-fresco with ng2+Natiivescript

I followed the guidelines to use nativescript-fresco with ng2+nativescript for my android app because it was crashing every time I scrolled more than once down then up. The component in which I'm using it is a listview which displays 20 online…
0
votes
1 answer

How to set size of imageView before downloading

In my android app, I have implemented imageview using Fresco, because the images were GIFs. and the images were given from the server made with node.js There are instagram-like timeline but the images are GIFs. and the problem is that before…
0
votes
1 answer

Fresco : Display Wrong image in gridview

I am using gridview. In grid each item contain a simpledraweeview, when i add a new item in first place and notify the adapter at that time first and last item having the same image. (It only occur in below lollipop) XML SimpleDraweeView…
Arun
  • 510
  • 1
  • 4
  • 21
0
votes
0 answers

import fresco: java.lang.NoClassDefFoundError: rx.plugins.RxJavaPlugins

In my android project ,I import fresco: dependencies { compile fileTree(include: '*.jar', dir: 'libs') compile 'com.android.support:design:23.0.1' compile 'com.android.support:recyclerview-v7:23.0.1' …
glassx
  • 1
0
votes
2 answers

SimpleDraweeView scale proportionally

I wan't to insert in my SimpleDraweeView with android:layout_width="50dp" android:layout_height=50dp some picture, that may be bigger than this dimensions. I want to resize picture proportionally, so for example picture with source dimension…
Dima Stoyanov
  • 121
  • 1
  • 11
0
votes
0 answers

NativeScript Fresco still crashes app with out of memory

As I navigate through my NativeScript app, I keep running into out of memory crashes. I tried to resolve this by first upgrading {N} with @next for both tns-core-modules and tns-core-modules-widgets. I then installed nativescript-fresco and replaced…
ZeroNine
  • 721
  • 1
  • 11
  • 29
0
votes
0 answers

Fresco SimpleDraweeView load local Picture won't support ResizeOptions?

ImageRequest request = ImageRequestBuilder.newBuilderWithSource(pictureInfo.getPictureUri()) .setResizeOptions(new ResizeOptions(100, 100)) .build(); DraweeController controller =…
cs x
  • 621
  • 2
  • 8
  • 23
0
votes
1 answer

I use Fresco in my Android Project, but it lacks of attributes such as 'roundAsCircle'

I've added this to my build gradle: compile 'com.facebook.fresco:fresco:0.14.1' and this in my layout xml: xmlns:fresco="http://schemas.android.com/apk/res-auto" but in fresco namespace,it only has 4 attributes:fresco:actualImageUri="" ,…
Zion Q
  • 95
  • 9
0
votes
1 answer

Why the SimpleDraweeView of Fresco flash a second when setImageUrl again

I am creating a share element tranition, the shareelement SimpleDraweeView was seted original thumbnail until the higher resolution one is downloaded. My problem is that the SimpleDraweeView flash a second after I set the URL again of higher…
zys
  • 1,306
  • 3
  • 18
  • 37
0
votes
1 answer

Using Fresco, will it clear cache automatically? or how to make it to clear cache auto?

I start a new project and plan to use Fresco, but I am afraid my app will be OOM just for the reason that cache is too big, so I wanna know will Fresco clear cache automatically? Thanks a lot!
Riven
  • 3
  • 1
  • 4
0
votes
1 answer

Show Gif preview with Fresco on Android (as first frame, for instance)

I use Fresco library to show animated gif files in RecyclerView and android. My code is pretty simple, I do this in onBindViewHolder(): DraweeController controller = Fresco.newDraweeControllerBuilder() .setUri(url) …
Evgen
  • 520
  • 4
  • 17
0
votes
1 answer

fresco and appcompat-v7 build error

In my gralde file ,I add ONLY two complies: compile ('com.android.support:appcompat-v7:23.4.0') compile('com.facebook.fresco:fresco:0.14.1') When build project, I got this error: com.android.build.api.transform.TransformException: …
I'm SuperMan
  • 653
  • 7
  • 20