Questions tagged [picasso]

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

Working with bitmaps can be hard on Android apps. There are too many things that can go wrong. The golden rule is decode only as much as you need, never more. Picasso is the realization of this rule by Square.

With automatic canceling, transformations and a fluent API, Picasso provides a super fast, elegant solution for downloading, caching and displaying images to your Android app.

Official Site: http://square.github.io/picasso/

2541 questions
58
votes
7 answers

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 was not loaded successfully?
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
54
votes
1 answer

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 fragments. some Code: ActivityA Intent intent = new…
royB
  • 12,779
  • 15
  • 58
  • 80
49
votes
5 answers

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 different times it causes a flickering effect as the…
Ebay89
  • 680
  • 1
  • 6
  • 9
46
votes
5 answers

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 code: uri =…
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
44
votes
3 answers

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 most of the times. Problem is, sometimes my images…
Mauker
  • 11,237
  • 7
  • 58
  • 76
43
votes
7 answers

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 ListView and for the LIstView's first item ImageView…
Akshay
  • 6,029
  • 7
  • 40
  • 59
43
votes
9 answers

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 { in = OpenHttpGETConnection(URL); …
user3376321
  • 849
  • 2
  • 9
  • 21
41
votes
6 answers

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 be smaller (and fit in centre) than the actual…
suresh cheemalamudi
  • 6,190
  • 11
  • 49
  • 67
37
votes
5 answers

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 for each image, and that is not ideal. Is there a…
gonzalomelov
  • 971
  • 1
  • 13
  • 30
36
votes
8 answers

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 way to load svg files from the web and show it in an…
mahdi
  • 16,257
  • 15
  • 52
  • 73
33
votes
4 answers

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 loaded from disk when needed. I understand there's a…
Jon
  • 7,941
  • 9
  • 53
  • 105
32
votes
2 answers

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 transition from the first activity to the second activity…
Simon
  • 19,658
  • 27
  • 149
  • 217
32
votes
4 answers

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 3053072-byte allocation. I/dalvikvm﹕…
Krøllebølle
  • 2,878
  • 6
  • 54
  • 79
31
votes
1 answer

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() { // do something } @Override public…
EES
  • 1,584
  • 3
  • 20
  • 38
30
votes
5 answers

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
  • 700
  • 2
  • 7
  • 20