我正在寻找适合 Nexus 9 的正确景观资源是什么?它目前正在为纵向选择 layout-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,这些也应该有效
- 布局-h1024dp-w768dp-端口
- layout-w1024dp-h768dp-land
有关限定符的有用阅读,http://developer.android.com/guide/practices/screens_support.html#NewQualifiers
关于android - Nexus 9 景观资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28118663/