I'm setting a larger image to a ImageView in Android using the Android Universal ImageLoader. However, I'm getting jagged or non-smooth edges when the image gets scaled down. Is there an option I can set in the imageview to have a smoother edges when scaling down of the image?
问问题
868 次
1 回答
1
您可以尝试将 ImageScaleType 设置为 EXACTLY,也可以将 Bitmap.Config 设置为 ARGB_8888 以获得更好的照片。
DisplayImageOption options = new DisplayImageOptions.Builder().showStubImage(R.drawable.ic_launcher).showImageForEmptyUri(
R.drawable.ic_launcher).showImageOnFail(R.drawable.ic_launcher).cacheInMemory()
.resetViewBeforeLoading().showStubImage(R.drawable.ic_launcher).imageScaleType(
ImageScaleType.EXACTLY).cacheOnDisc().bitmapConfig(Bitmap.Config.RGB_565).build();
于 2013-04-18T17:55:29.227 回答