android UI性能优化(3)--图片渲染的优化

ØBitmapFactory.Options的inJustDecodeBounds
设置为true,去读取图片信息(高、宽、类型);
ØBitmapFactory.Options的inSampleSize计算;
Øoptions.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
 // Decode bitmap with inSampleSize set
 options.inJustDecodeBounds = false;


ØEnif( 详见:https://code.google.com/p/enif/)
ØLRU(memory+disk)



你可能感兴趣的:(android UI性能优化(3)--图片渲染的优化)