I need to display an image in an Android app. I have created images of given sizes:
Density DPI Example Device Scale Pixels
ldpi 120 Galaxy Y 0.75x 1dp = 37,5px
mdpi 160 Galaxy Tab 1.0x 1dp = 50px
hdpi 240 Galaxy S II 1.5x 1dp = 75px
xhdpi 320 Nexus 4 2.0x 1dp = 100px
xxhdpi 480 Nexus 5 3.0x 1dp = 150px
xxxhdpi 640 Nexus 6 4.0x 1dp = 200px
Next, I have made appropriate drawable folders:
And use it in my ImageView in such a way:
My pictures appear in the smallest version no matter what screen size I check. I have cleaned and rebuilt project, but it didn't change anything. Where have I made a mistake? Thanks in advance!