Samsung Galaxy Nexus Layout / Attractive Structure?

What is the resource folder and layout that the Samsung Galaxy Nexus is looking for resources? I thought this layout is big, but it is not. It does not find the main layout (on setContentView) and crashes.

Then I will try layout-xlarge, again the same problem. I have nothing in the "layout" folder, and the accessible folders are drawable and drawable-hdpi (only these two).

Galaxy Nexus - 720 x 1280 pixels, 4.65 inches (pixel density 316 pixels).

Thanks.

+7
source share
2 answers

The Galaxy Nexus is an xhdpi device with a sw360dp-sized screen (roughly the β€œnormal” screen size in old-style identifiers ). Thus, the layouts will be found in /layout-sw360dp/ and drawables in /drawable-xhdpi/ .

+14
source

My htc phone is one x and with the same pixels and density with the Samsung Galaxy Nexus, but when I create the layout-sw360dp folder for the phone and when I launch the application on the phone, I find that the folder is no longer in use. Thanks!

+1
source

All Articles