I think that you don't have the problem in the code, nor in the images, but in the devices you're using to try the different densities. If you are assuming that larger screens means higher densities, that is not always the case. Note that hdpi
, ldpi
, mdpi
and xhdpi
refer to density, not screen size.
For example, below you can find two screenshots of the same ImageView
pointing to the same @drawable/a
icon but deployed in two devices with different screen density. To make the point I have placed completely different icons (both with the same name a.png
) in each density folder so that the difference can be easily appreciated:
2.7" - ldpi 3.7" - hdpi