android - How to load image from SD card using Picasso library -


i need load images sd card gridview. efficiency i'm using picasso library

picasso.with(activity).load(images.get(position).getdatapath())             .resize(96, 96).centercrop().into(viewholder.image); 

i used following code in adapter. unfortunately m unable see images please can 1 help.

note , can suggest efficient image loading library load images sd card.

requirement dont load image every time when scrolling. if loaded dont load image on scrolling

to load file need convert uri first

uri uri = uri.fromfile(new file(images.get(position).getdatapath()));  picasso.with(activity).load(uri)             .resize(96, 96).centercrop().into(viewholder.image); 

requirement dont load image every time when scrolling. if loaded dont load image on scrolling

  • picasso excellent this

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -