Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nexus 9 Landscape Resource

I'm looking for what the correct landscape resource should be for the Nexus 9? It's currently picking up layout-sw720dp for portrait, however when it attempts to use layout-sw720dp-land it looks terrible. Thoughts? Thanks!

like image 615
two1stnamz Avatar asked Mar 18 '23 06:03

two1stnamz


1 Answers

from : 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.

so targeting the n9,

  • layout-sw768dp for generic layouts on the n9 (and compatible devices)
  • layout-sw1024dp-land for landscape
  • layout-sw768dp-port for portrait

I haven't tried this personally, but these should also work if you want to only target the n9

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

Helpful reading on qualifiers, http://developer.android.com/guide/practices/screens_support.html#NewQualifiers

like image 170
petey Avatar answered Apr 02 '23 07:04

petey