Android Question Automatic resource selection

Pantelis

Member
Licensed User
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:
  1. Screen size: 5,5” - Resolution: 852 x 480 – Density: mdpi
  2. Screen size: 11” - Resolution: 1280 x 720 – Density: ldpi
When I run my app on first device it chooses the drawable_mdpi forder for the 9patch images and looks OK.

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
 
Top