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

android – Nexus 9景观资源

我正在寻找适合Nexus 9的正确景观资源?它目前正在为肖像拍摄布局-sw720dp,但是当它试图使用layout-sw720dp-land时它看起来很糟糕.思考?谢谢!

解决方法

来自: http://android-developers.blogspot.com/2014/10/getting-your-apps-ready-for-nexus-6-and.html

The Nexus 9 is a premium 8.9” tablet with 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.

所以瞄准n9,

> layout-sw768dp用于n9(和兼容设备)上的通用布局
> layout-sw1024dp-land for landscape
> layout-sw768dp-port for portrait

我没有亲自试过这个,但是如果你想只针对n9,这些也应该有效

> layout-h1024dp-w768dp-port
> layout-w1024dp-h768dp-land

有资格阅读资格赛,http://developer.android.com/guide/practices/screens_support.html#NewQualifiers

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

相关推荐