Search code examples
androidscreenresolution

Which folder will the element receive the params? (Android)


My avd is mdpi and I have an element that is defined in values, values-hdpi, values-large-hdpi, values-xlarge folders. When I run the project, from which folder will the compiler get the element references. Note: this element is not defined in Activity.java.


Solution

    • the folder values-hdpi will be to hdpi and above
    • the folder values-xhdpi will be to xhdpi and above

    as mdpi is less than hdpi so it will take the values from the folder which is least below it in you case it is values which is applicable to all