简体   繁体   English

是否有xxhdpi像素密度的720dp设备?

[英]Is there a 720dp device with xxhdpi pixel density?

I am trying to design an android application that takes layout xmls from layout-sw720dp-port and has xxhdpi pixel density and I am using genymotion to create custom device emulators. 我正在尝试设计一个Android应用程序,该应用程序从layout-sw720dp-port中获取布局xml,并且具有xxhdpi像素密度,并且我正在使用genymotion创建自定义设备模拟器。 But however I try, I cannot get a device resolution for the same. 但是无论如何,我都无法获得相同的设备分辨率。 I have tried making devices with resolutions 1. 1920 x 1080, 480dp 2. 2560 x 1600, 480dp . 我尝试过制作分辨率为1. 1920 x 1080,480dp 2. 2560 x 1600,480dp的设备。 But both these did not pick from layout-sw720dp-port. 但是这些都不是从layout-sw720dp-port中选择的。 Can someone give me a device resolution that takes xml from layout-sw720dp-port and is xxhdpi. 有人可以给我一个设备分辨率,它从layout-sw720dp-port中获取xml,并且为xxhdpi。

Both mentioned resolution are different in terms of android smallest width dir structure.After testing below mentioned cases in gennymotion. 两者提到的分辨率在android最小宽度目录结构方面有所不同。在gennymotion中测试以下提到的情况后。

1920 x 1080, 480dp (assume for Nexus 5) layout dir should be layout-sw360dp-port 1920 x 1080、480dp(假设适用于Nexus 5)布局目录应为layout-sw360dp-port

2560 x 1600, 480dp (assume for Nexus 10) layout dir should be layout-sw800dp-port 2560 x 1600、480dp(假设适用于Nexus 10)布局目录应为layout-sw800dp-port

(port i hve added bcz you hve mentioned in question.may bur handling orientation wise layout) (我已经在您提到的端口中添加了bcz。可能会处理方向明智的布局)

** **

For particularly layout-sw720dp is for 10 inch tabs. layout-sw720dp特别适用于10英寸制表符。 10 inch tab will take resource from that folder(layout-sw720dp) 10英寸选项卡将从该文件夹中获取资源(layout-sw720dp)

And 7 inch tab will take resource from layout-sw600dp 并且7英寸的标签将占用layout-sw600dp资源


For more details regarding multiscreen support pls check this 有关多屏支持的更多详细信息,请检查

From eclipse layout design you can get more idea about dir structure.This dir which i hve mentioned i gt from eclipse. 通过eclipse布局设计,您可以对dir结构有更多的了解。我从eclipse中提到过的该dir。

Select device and from the available list 选择设备,然后从可用列表中 在此处输入图片说明

Select Qualifiers for 1920 x 1080, 480dp(here i hve selected Nexus 5) 选择1920 x 1080、480dp的限定词(此处我选择了Nexus 5) 在此处输入图片说明

Select Qualifiers for 2560 x 1600(here i hve selected Nexus 10) 选择2560 x 1600的限定词(此处已选择Nexus 10) 在此处输入图片说明

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

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