一. BitmapFactory.Options 中inSampleSize的取值问题 关于inSampleSize的取值问题Google已经给出了一个推荐的算法:(https://developer.android.com/topic/performance/graphics/load-bitmap) public static int calculateInSampleSize( BitmapFactory.Options options, int reqWidth, int reqHeig
LDPI (Low Density Screen,120 DPI),其图标大小为 36 x 36 px.MDPI (Medium Density Screen, 160 DPI),其图标大小为 48 x 48 px.HDPI (High Density Screen, 240 DPI),其图标大小为 72 x 72 px.xhdpi (Extra-high density screen, 320 DPI),其图标大小为 96 x 96 px. xxhdpi (480dpi)其图标大小144x14