user582934
user582934

Reputation:

Samsung Galaxy Nexus layout/drawable structure?

What is the folder for resources and layout that the Samsung Galaxy Nexus searches for resources? I thought it's layout-large, but it isn't. It doesn't find the main layout (on setContentView), and crashes.

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

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

Thanks.

Upvotes: 7

Views: 6030

Answers (2)

AndroidLover
AndroidLover

Reputation: 36

My phone is htc one x,and with the same pixels and density with the Samsung Galaxy Nexus,but when i create a folder layout-sw360dp for the phone,and when i run the app in the phone,i found that the folder is not used any more.Thanks!

Upvotes: 1

Alex Curran
Alex Curran

Reputation: 8828

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

Upvotes: 14

Related Questions