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 have working code to get the image filesystem Uri , but can't get the Picasso.load() method to work. 回答1: Of course you can. Its actually pretty straight forward: File f = new File ( "path-to-file/file.png" ) or File f = new File ( uri ) Picasso . with ( getActivity ()). load ( f ). into ( imageView ); also Picasso . with ( getActivity ()).