Is there a way for Android to choose a different image based on screen size? According to the docs and my testing, images should be placed in folders like drawable, drawable-mdpi, drawable-hdpi, etc.
These folders, however, are screen type, not screen size. Layout folders are used to handle different screen sizes, but they do not allow you to store images in them. Xml files only.
Therefore, if I run my application on two devices with the same teps, but with different screen sizes, the same image is selected from the same accessible folder. I really want the larger image to be selected for the larger screen and the smaller image for the smaller screen.
Thank you for your help.
source
share