Reputation: 632
I'm using Android Picasso library from Square (http://square.github.io/picasso/).
My reason for using Picasso is because it helps to load high resolution remote image(JPEG, on average 3.5MB in size) very well. My app needs to load the images onto 1 activity, and was suffering badly from Out of Memory exception. If anyone has a better suggestion for other library to use, I'd love to hear it!
apology if my question is stupid, I'm very new to Android. Thanks a million!
Upvotes: 1
Views: 3193
Reputation: 2311
1.If you really want to provide hight quality of image, smooth moving with ImageView and regular ways to do it with Android sdk will not help you. This kind of work generally done by OpenGL in game programming.Even if to solve your problem I would recomment Universal-Image-Loader and use ImageScaleType and DisplayOptions to do your work. And for Image scaling you can try CENTER_INSIDE or CENTER_CROP look this.
2.Google has very good documentation about OOM read this properly. For pinch zoom Mike Ortiz has released very good code look this.
Upvotes: 1
Reputation: 2178
Picaso is good library. Yo can try .centerInside() or .fit(). There is an library here which works very good. Image quality actually depends on what Resolution of your image. If Image is of good quality after zooming it'll look good. Another thing which is notable you need even after using Picaso you may face out of memory exception if you are cache images alot. So you can call skipMemoryCache() to overcome this. Hope this'll help you :)
Upvotes: 0