* Android configuration qualifiers - how do they work?

My tablet is a Google Nexus 10 and it has an XHDPI screen with (I believe) Extra-Large.

  • I put the assets in my drawable-xhdpi folder for this .

  • Then I decided to test creating another folder namely drawable-xlarge-xhdpi and insert some assets into it. I left other resources in drawable-xhdpi .

  • I ran the app and ignored the resources in drawable-xhdpi and took resources from drawable-xlarge-xhdpi .

  • Then I renamed drawable-xlarge-xhdpi to drawable-large-xhdpi .

  • I ran the app and ignored the resources in drawable-xhdpi and took resources from drawable-large-xhdpi .

  • Then I renamed drawable-large-xhdpi to drawable-normal-xhdpi .

  • I ran the app and ignored the resources in drawable-xhdpi and took resources from drawable-normal-xhdpi .

  • Then I renamed drawable-normal-xhdpi to drawable-small-xhdpi ..

  • I ran the app and this time ignored the resources in drawable-small-xhdpi and took resources from drawable-xhdpi .. p>

So it looks like the Android system sees the Nexus 10 as having a "regular", "large" and "extra large" screen.

I have no idea what is going on here, but I'm sure there is someone out there who has some kind of handle and who could

Edit

It just gets weirder even though I put some resources in a folder called drawable-normal-ldpi (couldn't be further from my actual device which is XLarge (Screen) and XHDPI (density)) it still takes resources from this folder and ignores files in the XHDPI folder.

I read and thought I understood the Official Docs on the matter , but my last test shows that I clearly don't know.

+3


source to share





All Articles