If I define drawables for a density qualified folder
(eg drawable-hdpi), and also drawables to fall back on in drawable-nodpi
, will a high de
drawable-nodpi will bypass scaling and drawable will use the default scaling:
drawable-nodpi is efficient if your code will be doing its own scaling (or no scaling) and you don't want the image pre-scaled by Android.
There is also drawable-anydpi, just to make things more confusing.
drawable with no specifications will be used if an exact match on density and screen specifications does not exist. drawable-nodpi will be used after drawable.
UPDATE If you have both drawable and drawble-nodpi, the select order is either a more complex rule not documented or Android is broken. Through experimentation I confirmed that devices with screen density < xhdpi will correctly select the drawable image. Devices with screen density >= xhdpi will select the drawable-nodpi.
Selection rule: 1. Pick match to screen density, one of these: