1. The open source framework image-cache-master a generic URI to specify whether local and network files http:///file:///
2. Similar Contentresolver.scheme_android_resource + "://" +r.getresourcepackagename (r.drawable.icon_photograph) + "/" + R.getresourcetypename (r.drawable.icon_photograph) + "/"
+ R.getresourceentryname (r.drawable.icon_photograph)
The local drawable needs to modify the framework Image-cache-master because the framework supports only file or HTTP
3.image-cache-master use JPG By default, you will find that the picture has a black background changed to Compressformat.png.
4. In order to be more humane, the small figure by default in XML using Scaletype.center, large map through code to determine the use of Scaletype.fit_center in Imageloaderadapter onimageloaded method to write code judgment
if (Iv.getdrawable (). Getintrinsicheight () >iv.getheight () | | Iv.getdrawable (). Getintrinsicwidth () >iv.getwidth ()) { iv.setscaletype (scaletype.fit_center); }
Custom Picture Albums