简体   繁体   English

三星Galaxy Nexus布局/可绘制结构?

[英]Samsung Galaxy Nexus layout/drawable structure?

What is the folder for resources and layout that the Samsung Galaxy Nexus searches for resources? Samsung Galaxy Nexus搜索资源的资源和布局文件夹是什么? I thought it's layout-large, but it isn't. 我认为它的布局很大,但事实并非如此。 It doesn't find the main layout (on setContentView), and crashes. 它没有找到主要布局(在setContentView上)和崩溃。

Then I try layout-xlarge, again the same problem. 然后我尝试layout-xlarge,同样的问题。 I have nothing in 'layout' folder and drawable folders are drawable and drawable-hdpi (only these two). 我在'layout'文件夹中没有任何内容,drawable文件夹是drawable和drawable-hdpi(只有这两个)。

Galaxy Nexus is 720 x 1280 pixels, 4.65 inches (316 ppi pixel density). Galaxy Nexus是720 x 1280像素,4.65英寸(316 ppi像素密度)。

Thanks. 谢谢。

The Galaxy Nexus is an xhdpi device, with a sw360dp size screen (roughly a "normal" size screen in the old style identifiers ). Galaxy Nexus是一个xhdpi设备,具有sw360dp大小的屏幕(在旧式标识符中大致为“普通”大小的屏幕)。 So layouts will be found in /layout-sw360dp/ and drawables in /drawable-xhdpi/ . 因此布局可以在/layout-sw360dp//drawable-xhdpi/

我的手机是htc一个x,与三星Galaxy Nexus具有相同的像素和密度,但是当我为手机创建文件夹布局-sw360dp时,当我在手机中运行应用程序时,我发现该文件夹不是再也用了。谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM