Skip to content

GalleryFinal question

KARL--dujinyang edited this page May 19, 2017 · 1 revision

GalleryFinal 作者已不维护:

问题解决聚集在这里

  • 图片压缩
 import com.lidroid.xutils.BitmapUtils;
 //Code:
 BitmapDisplayConfig config = new BitmapDisplayConfig();
        config.setLoadFailedDrawable(defaultDrawable);
        config.setLoadingDrawable(defaultDrawable);
        config.setBitmapConfig(Bitmap.Config.RGB_565);
        config.setBitmapMaxSize(new BitmapSize(width, height));
        bitmapUtils.display(imageView, "file://" + path, config);