fresco

Android Image invalidate in fresco

三世轮回 提交于 2020-01-14 04:49:28
问题 I am migrating android image caching library from picasso to fresco. I want to know if there is any way to invalidate image already catched as I am adding feature to replace existing image there is way to do so in picasso like Picasso.with(context).invalidate(URI); This line remove the cached image and use new one using the url provided which is same like, http://example.com/image_path In fresco I have tried using Fresco.getImagePipeline().evictFromMemoryCache(uri); This is removing image

Fresco setDownsampleEnabled(true) makes image muzzy when zoom

做~自己de王妃 提交于 2020-01-06 05:06:24
问题 I config the fresco with setDownsampleEnabled(true) and use PhotoDraweeView to zoom the image.But the image is muzzy when i enlarge it.If I remove setDownsampleEnabled(true), the image shows well when i zoom out.But it will lead to other problem.Does anyone has good solution? 来源: https://stackoverflow.com/questions/38237023/fresco-setdownsampleenabledtrue-makes-image-muzzy-when-zoom

Fresco image loading callback

有些话、适合烂在心里 提交于 2019-12-31 01:57:21
问题 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 that I don't like. My goal is to hide View if it fails to download it from the net. I cannot reference SimpleDraweeView from controller, even on callback method. I need to hide View , but it seems that I cannot get reference to it. Each time I need to

Facebook Fresco using wrap_content

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-28 05:22:17
问题 I got a bunch of drawables that I want to load using fresco, I want to use wrap_content size for those images, how can I do it in xml with fresco? Or if xml is not possible how do you do it in code? <com.facebook.drawee.view.SimpleDraweeView android:id="@+id/myImage" android:layout_width="wrap_content" android:layout_height="wrap_content" fresco:placeholderImage="@mipmap/myImage"/> The above code is not working unless I set a fixed size. 回答1: I am part of the Fresco team and I was the one who

Fresco Image with both width and height - match_parent doesn't display

大兔子大兔子 提交于 2019-12-23 17:16:08
问题 I have an app which loads an image using the fresco library. I have 2 problems. 1. If I use the fresco image like this <com.facebook.drawee.view.SimpleDraweeView android:id="@+id/feedImage" android:layout_width="match_parent" android:layout_height="match_parent" /> it won't display anything but a thin line of colors where the image should be. However if I do something like <com.facebook.drawee.view.SimpleDraweeView android:id="@+id/feedImage" android:layout_width="match_parent" android:layout

Getting bitmapdrawable from fresco

烈酒焚心 提交于 2019-12-23 16:47:22
问题 I'm trying to get the bitmap that from SimpleDraweeView. I already setted my SimpleDraweeView with uri image: final Uri uri = new Uri.Builder() .scheme(UriUtil.LOCAL_RESOURCE_SCHEME) .path(returnUri.getPath()) .build(); profileImage.setImageURI(returnUri); And now I'm trying to save the image in the memory (storage) of the phone. Bitmap b = ((BitmapDrawable) profileImage.getDrawable()).getBitmap(); // ImageDiskHelper.drawableToBitmap(profileImage.getDrawable().get); try { ImageDiskHelper

Android: how to rotate image using Fresco

拥有回忆 提交于 2019-12-22 15:51:11
问题 I am using Fresco to load images from phone storage by uri into SimpleDraweeView (both internal and external, using content provider - 'content://'). They are loading fine, but keep rotating if they have orientation set in their properties. I tried to set imageRequest with .setAutoRotateEnabled(true) property, but for some reason it doesn't work for me. Any suggestions on how to rotate images to display them properly? imageView.setController( controllerBuilder .setOldController(imageView

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

北战南征 提交于 2019-12-21 16:55:04
问题 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 error: Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_71\bin\java.exe'' finished with non-zero exit value 2

SimpleDraweeView not resizing after scaling image in fresco

浪尽此生 提交于 2019-12-18 08:57:05
问题 I'm using fresco to display images in a list view. however i have an issue. when i scale my image using methods that maintain aspect ratio like CENTER_CROP, and the scaled image height becomes smaller than my simpledraweeview's height, simple-Drawee-View isn't automatically resized to match size of scaled image. I have tried to use android:adjustViewBounds = true But it doesn't work. i have also tried the method below but scaleY which i wanted to use to calculate scaled height returns 1 even

Local image caching solution for Android: Square Picasso, Universal Image Loader, Glide, Fresco?

爷,独闯天下 提交于 2019-12-17 02:33:29
问题 I am looking for an asynchronous image loading and caching library in Android. I was going to use Picasso, but I found Universal Image Loader is more popular on GitHub. Does anyone know about these two libraries? A summary of pros and cons would be great. (All my images are on disk locally, so I don't need networking, therefore I don't think Volley is a fit) 回答1: Update Sep 2018: After several years, I needed the almost same thing for a local image caching solution. This time around, UIL has