You can find the priority of resource folders here on this page . It is mainly used to support various devices and configurations.
Android uses certain logic to determine the best suitable resource folder for the device. This is explained in this documentation page .
Regarding your device request:
- First: 480 * 800 hdpi v14 - values-hdpi
- Second: 320 * 480 mdpi v17 - values-mdpi
- Third: 720 * 1280 hdpi v17 - values-w480
In the list you presented, values-w480 (devices with lowest width of 480dp, only from API 13) received the highest rating. Thus, no matter what device meets these criteria, it will receive resources from this folder.
values-vXX (devices with API >= XX) received the lowest value. Therefore, if other folders are not accepted, then only Android receives resources from this folder. See the table listing resource qualifiers for more information on this topic. Resource qualifiers are listed in the table in order of priority of resource qualifiers.
- First case: normal hdpi - width less than 480dp - So values-hdpi
- The second case: normal mdpi - width less than 480dp - mdpi values ββ(mdpi values ββhave more weight than v17 values)
- Third case: an hdpi device with a width of 480dp (720 / 1.5 = 480) API 17 - Values-W480
source share