微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

android – Nexus 9 – 2014的资源配置是什么?

我想知道Nexus 9的资源配置是什么?它会像Nexus 10一样sw720dp吗?

GSMArena说它是1536 x 2048像素,8.9英寸(~281 ppi像素密度),所以我猜它会是xhdpi而dp的宽度因此是768,所以应该属于sw720dp.但是,我不确定,并希望与那些知情人士确认.

此外,它是否是一个看起来像在风景中使用而不是肖像的设备?目前对于sw720dp,我的应用程序中某个屏幕的认方向是横向,并且想知道它是否也适用于Nexus 9.

解决方法

根据Android开发者博客上的 Getting Your Apps Ready for Nexus 6 and Nexus 9帖子,Nexus 9有:

(…) a screen size of 2048 x 1536 pixels (288 ppi),which translates
to 1024 x 768 dip
. This is a 4:3 aspect ratio,which is unique
compared to earlier tablets. The Nexus 9 falls into the xhdpi density
bucket,and you should already have assets in the drawable-xhdpi
folder.

所以,是的sw720dp似乎是正确的.

关于方向,它说:

It’s very important that you don’t lock your app to a single
orientation. The Nexus 9’s natural orientation is portrait mode,while it’s used in landscape mode with the keyboard.

原文地址:https://www.jb51.cc/android/309987.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐