Questions tagged [picasso]

Picasso is an open source powerful and dynamic image caching and downloading library by Square.

Filter by
Sorted by
Tagged with
367 votes
6 answers
172k views

Picasso v/s Imageloader v/s Fresco vs Glide vs Coil [closed]

Findings: Difference between Picasso v/s ImageLoader here ... Info about the library GLIDE here ... Facebook has its own library Fresco Newest addition to the list Coil Questions: What is the ...
Devrath's user avatar
  • 42.6k
212 votes
13 answers
170k views

How to get a context in a recycler view adapter

I'm trying to use picasso library to be able to load url to imageView, but I'm not able to get the context to use the picasso library correctly. public class FeedAdapter extends RecyclerView.Adapter&...
Stranger B.'s user avatar
  • 9,204
168 votes
2 answers
103k views

Resize image to full width and fixed height with Picasso

I have a vertical LinearLayout where one of the items is an ImageView loaded using Picasso. I need to rise the image's width to the full device width, and to display the center part of the image ...
David Rabinowitz's user avatar
138 votes
8 answers
46k views

onBitmapLoaded of Target object not called on first load

In my function : public void getPointMarkerFromUrl(final String url, final OnBitmapDescriptorRetrievedListener listener) { final int maxSize = context.getResources().getDimensionPixelSize(R.dimen....
psv's user avatar
  • 3,257
128 votes
9 answers
124k views

How do I use disk caching in Picasso?

I am using Picasso to display image in my android app: /** * load image.This is within a activity so this context is activity */ public void loadImage (){ Picasso picasso = Picasso.with(this); ...
user93796's user avatar
  • 19.1k
116 votes
12 answers
85k views

Animated loading image in picasso

I have the following code to load an image in Picasso, using a drawable for the placeholder to display while the image is downloading. What I want though is an animated spinning progress bar style ...
NZJames's user avatar
  • 5,003
113 votes
10 answers
94k views

android: create circular image with picasso

The question had been asked and there had been a promise made for the very version of Picasso that I am using: How do I send a circular bitmap to an ImageView using Picasso? I am new to Picasso and ...
Katedral Pillon's user avatar
97 votes
7 answers
53k views

How to listen for Picasso (Android) load complete events?

Is there a way to listen for events from Picasso when using the builder like: Picasso.with(getContext()).load(url).into(imageView); I'm trying to call requestLayout() and invalidate() on the parent ...
Keith's user avatar
  • 4,174
91 votes
13 answers
90k views

Resize image to full width and variable height with Picasso

I have a listView with an adapter that contains ImageView of variable size (width and height). I need resize the pictures load with Picasso to the max width of layout and a variable height given by ...
wendigo's user avatar
  • 1,993
91 votes
5 answers
75k views

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

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 ...
X.Y.'s user avatar
  • 13.8k
88 votes
4 answers
107k views

Use Picasso to get a callback with a Bitmap

I'm using Picasso to download images for my app. I'm in a situation where I need to access the Bitmap first before it's loaded into the ImageView. The presence of the Downloader.Response class seems ...
Steve M's user avatar
  • 9,504
80 votes
7 answers
94k views

Picasso Load image from filesystem

Can I use Picasso library to load images from the filesystem? I'm using startActivityForResult to let the user pick a photo from his gallery, and then want to show the selected image. I already ...
edrian's user avatar
  • 4,501
77 votes
14 answers
65k views

Invalidate cache in Picasso

I load an image from disk using Picasso, e.g., Picasso.with(ctx).load(new File("/path/to/image")).into(imageView), but whenever I save a new image in that file, and refresh my ImageView, Picasso still ...
Maarten's user avatar
  • 7,103
76 votes
13 answers
85k views

cannot find symbol method with() using picasso library android

i'm getting one issue in android app, I am trying to check already existing app, the app contains implementation('com.squareup.picasso:picasso:3.0.0-SNAPSHOT') { exclude group: 'com.android....
Afsara's user avatar
  • 1,431
58 votes
7 answers
55k views

Android: Picasso load image failed . how to show error message

I am trying to use the picasso library to loading the image store in the mediastore. When I called load(imageview, callback), the picasso call onFail instead of onSuccess. How do I know why the image ...
LittleFunny's user avatar
  • 8,275
58 votes
9 answers
53k views

Recyclerview painfully slow to load cached images form Picasso

I have implemented a RecyclerView that contains mainly images which is loading in through Picasso. My problem is that as soon as I scroll down or up the view, the placeholder image appears for approx. ...
charrondev's user avatar
  • 1,139
54 votes
1 answer
3k views

JNI Error on Scene Transition Animation - Layer exceeds max

please notice the EDIT in the bottom of the question I have 2 activities: ActivityA, ActivityB with associated frgments: FragmentA, FragmentB respectively. ImageView v is shared between those two ...
royB's user avatar
  • 13k
50 votes
5 answers
38k views

Picasso image load callback

I want to use Picasso to load three consecutive images one on top of each other in a listview. Using the methods Picasso provides makes this easy. However because these images are loading in at ...
Ebay89's user avatar
  • 690
46 votes
5 answers
69k views

Picasso load drawable resources from their URI

I have to show a drawable from res into an ImageView. In this app, I'm using Picasso for some reasons. In this case, I need to load the drawable using its URI and not its id. To do that, here is my ...
Daniele Vitali's user avatar
44 votes
3 answers
4k views

Getting black ImageView using Picasso and Glide

The problem I'm writing an Android app that's supposed to have a "Slideshow" feature on it. I've found this nice library, based on Picasso, that does exactly what I wanted, and it worked just fine ...
Mauker's user avatar
  • 11.4k
43 votes
8 answers
47k views

Make ImageView with Round Corner Using picasso

I know there are lots of link available to make ImageView Round Corner. But I'm Using Picasso Library for Image Loading.. I refer the link to get result. But the Problem is that I'm Using it in ...
Akshay's user avatar
  • 6,089
43 votes
9 answers
62k views

Why use Android Picasso library to download images?

Why should I download the images via the Picasso library instead of just using this code: private Bitmap DownloadImage(String URL) { Bitmap bitmap = null; InputStream in = null; try ...
user3376321's user avatar
41 votes
6 answers
55k views

Android Picasso - Placeholder and Error image styling

I'm using Picasso library for image downloading from the network. I just wonder whether I can use a progress dialog or a GIF image as a place holder? Also any idea on how to make place holder image to ...
suresh cheemalamudi's user avatar
37 votes
5 answers
27k views

Android Picasso library, How to add authentication headers?

I have tried setting a custom OkHttpClient with a custom Authenticator, however as the doc says: "Responds to authentication challenges from the remote web or proxy server." I have to make 2 requests ...
gonzalomelov's user avatar
36 votes
8 answers
61k views

android:load svg file from web and show it on image view

I want to load a svg file from the web and show this file in an ImageView. For non vector images I use the Picasso library. Is it possible to use this library for svg files as well? Is there any ...
mahdi 's user avatar
  • 16.3k
34 votes
4 answers
23k views

Android - use picasso to load image without storing it in cache

I want to use picasso to load an image from a url into a placeholder, but not store that image in cache - in other words, I want the image to be downloaded from the net directly to disk and then ...
Jon's user avatar
  • 7,991
32 votes
4 answers
27k views

Picasso: out of memory

I have a RecyclerView presenting several images using Picasso. After scrolling some time up and down the application runs out of memory with messages like this: E/dalvikvm-heap﹕ Out of memory on a ...
Krøllebølle's user avatar
32 votes
2 answers
9k views

Android Shared Element Transition: Transforming an ImageView from a circle to a rectangle and back again

I'm trying to do a shared element transition between two activities. The first activity has a circle imageview and the second activity has a rectangular imageview. I just want the circle to ...
Simon's user avatar
  • 19.8k
31 votes
1 answer
45k views

How to load a Bitmap with Picasso without using an ImageView?

With ImageView, I can use the following code to download image with callback Picasso.with(activity).load(url).into(imageView, new Callback() { @Override public void onSuccess() { ...
siutsin's user avatar
  • 1,614
30 votes
5 answers
28k views

how to load bitmap directly with picasso library like following

Picasso.with(context).load("url").into(imageView); Here instead of url i want bitmap how can i achieve this. like below- Picasso.with(context).load(bitmap).into(imageView);
Sachin Mandhare's user avatar
29 votes
5 answers
39k views

Saving image from url using Picasso?

I'm trying save an image using API Picasso. To do it I'm trying use Target to save but I can't do this work. How could I do this ? Trying //save image public static void imageDownload(Context ...
FernandoPaiva's user avatar
28 votes
2 answers
29k views

How do I set background image with picasso in code

I know picasso loads image into imageview etc but how do I set my layout background image using picasso? My code: public class MainActivity extends ActionBarActivity { @Override protected ...
Toye's user avatar
  • 483
26 votes
4 answers
131k views

how to add picasso library in android studio

I am getting this error, please help me. Error:A problem occurred configuring project ':app'. > Cannot evaluate module picasso-master : Configuration with name 'default' not found. Done so ...
Kartiki's user avatar
  • 265
26 votes
4 answers
31k views

Using Picasso with custom disk cache

In Volley library, the NetworkImageView class requires an ImageLoader that handles all the image requests by searching for them inside an ImageCache implementation, the user is free to choose how the ...
Vektor88's user avatar
  • 4,861
25 votes
5 answers
32k views

Load images from disk cache with Picasso if offline

I have some images that I download from different web sites when the app starts, by doing this: Picasso.with(context).load(image_url).fetch(); Now, suppose the user closes the app and turns offline. ...
Daniele Vitali's user avatar
23 votes
14 answers
49k views

RecyclerView laggy scrolling

I am loading 400x200 images in RecyclerView, but scrolling is laggy on 2k devices. I am using Picasso for loading images from resource. As you can see in the demo images are blurry on 2k screen, but ...
phlosopher_mk's user avatar
23 votes
2 answers
25k views

Load large images with Picasso and custom Transform object

I'm getting an Out Of Memory exception using Picasso when loading "large" images (> 1.5MB) from Android Gallery (using startActivityForResult). I'm using a custom Target object because I need to ...
edrian's user avatar
  • 4,501
23 votes
2 answers
20k views

How to implement my own disk cache with picasso library - Android?

I'm using picasso library to load images for my app. But I don't how to implement my own disk (sdcard) caching with picasso library.
Dax's user avatar
  • 6,898
22 votes
5 answers
25k views

Picasso java.lang.IllegalStateException: Method call should not happen from the main thread

I am attempting to use Picasso to get three Bitmap images from a URL public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab2); ...
Brian's user avatar
  • 7,226
21 votes
6 answers
20k views

OkHTTP and Picasso don't run together

I use Picasso library in my project to load images ande cache them. It works good without any problem. However, when I try to use OkHttp library to perform data communication with my server (JSON ...
anL's user avatar
  • 1,073
21 votes
3 answers
31k views

how to use progressbar when loading image in picasso?

I want onStart() method to load image from server using picasso and I want to show a progress bar until the photos are fully downloaded Here is my code: @Override protected void onStart() { ...
androidAhmed's user avatar
21 votes
3 answers
22k views

Transparent part of image in ImageView become black

I have problem when displaying image with transparency in Android KitKat (Nexus 7), it is OK in nexus 4 (KitKat) and other previous Android OS, here the image: and ImageView layout: <ImageView ...
hakim's user avatar
  • 3,859
21 votes
3 answers
8k views

Android Picasso auto rotates image

I am using Picasso to load images from the web in my application. I have noticed that some images are shown rotated by 90degrees although when I open the image in my browser I see it correctly ...
Panos's user avatar
  • 7,317
20 votes
2 answers
15k views

Preload images into memory/disk with Android Picasso

Can I download images with Picasso before displaying them? I want to cache images first. Sample scenario: User clicks on the button, sees the progressbar, and when the images have finished loading ...
user3032346's user avatar
19 votes
5 answers
27k views

Using picasso library with a circle image view

I am looking at using the Picasso library to download an image from URL and pass this into circle image view, but since picasso requires that you pass in an actual imageView I have come to a ...
MichaelStoddart's user avatar
19 votes
5 answers
17k views

Appcompat CardView and Picasso no rounded Corners

I do not know where Exactly i Should Adress this issue, if it is my fault, there is something in the Picasso Lib Wrong or in the Cardview Library. Basicly i have a CardView containing an image (Full ...
Angelo's user avatar
  • 1,711
19 votes
9 answers
71k views

I/System.out: (HTTPLog)-Static: isSBSettingEnabled false?

I am getting this when using a recycle view along with Picasso library to fetch images from sound cloud. The problem is that the app freezes for few seconds sometimes. Then, I get a message of ...
jelmood jasser's user avatar
19 votes
4 answers
21k views

How to load video thumbnails using square picasso library?

Currently I'm loading MediaStore Image Thumbnails using picasso into the ListView with the following snippet: (video.getData() returns the actual path of the image such as mnt/sdcard/...) Picasso....
Mohammad Sharaf Ali's user avatar
19 votes
4 answers
18k views

Adding borders for image rounded image android

What i have:: I have a Imageview for which i am making image as a circle using picassso What i what to do:: I want to add a black border for rounded image using my current implementation, how to ...
Devrath's user avatar
  • 42.6k
19 votes
3 answers
19k views

Fade in animation while loading image Using Picasso

I want to show a fade effect when image is loading on Imageview. I am using picasso to cache image and display in image view. I have searched alot for this but couldnt find any solution. I have used ...
Android's user avatar
  • 1,095

1
2 3 4 5
51