In the case I have both values-xhdpi and values-large resources with which one will the galaxy note II work with? I don't have a device for testing and the emulator only takes me so far.
Any idea?
In the case I have both values-xhdpi and values-large resources with which one will the galaxy note II work with? I don't have a device for testing and the emulator only takes me so far.
Any idea?
According to the precedence table, large
comes before xhdpi
, therefore values from values-large
will be used on the actual device.
An important note here, this happens if the device actually declares itself as having a large screen. However, devices are not very consistent about it, so I would consider adding resources to a folder like sw600dp
because it is much more reliable. For more details read the link above and also check out how to use them in best practices.
Here is a table of qualifer precedence:
http://developer.android.com/guide/topics/resources/providing-resources.html#table2
Android supports several configuration qualifiers and you can add multiple qualifiers to one directory name, by separating each qualifier with a dash. Table 2 lists the valid configuration qualifiers, in order of precedence—if you use multiple qualifiers for a resource directory, you must add them to the directory name in the order they are listed in the table.
Reading this part:
http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch
It will find it in -large
first and then ignore the -xhdpi
one, so it looks like -large
takes precedence over -xhdpi
Edit: someone else who agrees: https://stackoverflow.com/a/10685580/833647