Android-universal-image-loader - loading bitmaps efficiently into memory -


can android-universal-image-loader load bitmaps memory scaled down, this: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html ?

thanks!

i'm loading images this:

final imagesize size = new imagesize(max_w, max_h); final displayimageoptions options = new displayimageoptions.builder()     .imagescaletype(imagescaletype.in_sample_power_of_2)     .build(); 

imageloader.getinstance().loadimage(uri.tostring(), size, options, new imageloadinglistener() { , have 2 issues:

  1. the resulting bitmap has height or width greater max specified.
  2. i worry loaded entire bitmap memory , scaled down, fail large images in low memory scenarios.

picasso can, , incase large image.

                picasso.with(getactivity().getbasecontext())                     .load(new file(picturepath))                     .resize(300, 400)                     .placeholder(r.drawable.placeholder)                     .error(r.drawable.errorimage)                     .into(imageview); 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -