Hi all
I try to see what my app looks like in different devices and i am confused about the automatic selection of bitmap resources.
I have these directories in res/
drawable
drawable_ldpi
drawable_mdpi
drawable_hdpi
drawable_xhdpi
with 9patch images inside
and i have these two emulator devices:
But when I run it on second device although I have a device with bigger resolution it chooses the drawable_ldpi folder and not the drawable_hdpi. Yes it is a ldpi device but we have a bigger resolution here and as it selects the folder with smaller sized images it looks wrong.
Why the selection of resources is made according the density and not the resolution?
Do I miss something?
Thanks
I try to see what my app looks like in different devices and i am confused about the automatic selection of bitmap resources.
I have these directories in res/
drawable
drawable_ldpi
drawable_mdpi
drawable_hdpi
drawable_xhdpi
with 9patch images inside
and i have these two emulator devices:
- Screen size: 5,5” - Resolution: 852 x 480 – Density: mdpi
- Screen size: 11” - Resolution: 1280 x 720 – Density: ldpi
But when I run it on second device although I have a device with bigger resolution it chooses the drawable_ldpi folder and not the drawable_hdpi. Yes it is a ldpi device but we have a bigger resolution here and as it selects the folder with smaller sized images it looks wrong.
Why the selection of resources is made according the density and not the resolution?
Do I miss something?
Thanks