mdpi

Same DPI but different inch size

丶灬走出姿态 提交于 2019-12-07 09:57:03
问题 I know the Internet is overwhelmed with questions about DPI px inches and so on. But after several hours of googling my situation doesnt seem to happen to anyone else! I have 2 devices custom build with android studio which are both mdpi. BUT one device is 3.65inch and the other device is an 10.1 inch. I have created a folder with 2 images 250x125 with the dpi set to 160 dpi If normally I would declare my 2 images in my XML with dp units instead of pixels...I would suppose on both screens the

Same DPI but different inch size

北城余情 提交于 2019-12-05 18:21:14
I know the Internet is overwhelmed with questions about DPI px inches and so on. But after several hours of googling my situation doesnt seem to happen to anyone else! I have 2 devices custom build with android studio which are both mdpi. BUT one device is 3.65inch and the other device is an 10.1 inch. I have created a folder with 2 images 250x125 with the dpi set to 160 dpi If normally I would declare my 2 images in my XML with dp units instead of pixels...I would suppose on both screens the result should be the same right ? Well it seems the images keep remaining the same size and don't look

Where to store images in Android drawables folder?

时光毁灭记忆、已成空白 提交于 2019-12-05 06:42:25
问题 I am working on Android application that should support 2.1 till latest Android OS (4.2) version. Currently I have few images to display in my image-gallery module. I need to support my app on all devices (smartphone and tablet) which support OS ranging from 2.1 to 4.2 (latest). Each image is roughly of size 368X387, 50 KB each, PNG type My workspace res contains following drawable folders: drawable-hdpi drawable-ldpi drawable-mdpi drawable-xdpi I have some confusion around In which folder