android - Picasso PlaceHolder Image : OutOfMemory -


i working android picasso library , after setting image drawable folder in placeholder,i getting outofmemory exception. picasso place holder image stays in memory, if yes how remove placeholder image when actual image loaded?

you may try resizing placeholder image since might big , causing outofmemory, can more complex error not of placeholder. , maybe it's not problem of placeholder of current image loaded url big? can resize image below code:

picasso.with(mcontext)         .load(someurl)         .resize(sizex, sizey)         .placeholder(r.drawable.placeholder)         .into(imageview); 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -