This might be a quick answer but I must not know what to search for as I can’t find anyone talking about it! I have some png files in my drawables folder that are 88×88 pixels. I run my app and have a log print out the size of the images and it claims they are 176×176. What gives? Is something expanding my images before they go into the apk or is my phone really only half the resolution it claims?
Share
BitmapFactory.decodeResourcescales images in theDrawablefolder according to the DPI of the device (it generates a higher resolution image for high resolution screens).If you don’t want the image to be scaled on decoding, place it in the folder
Drawable-nodpi