Layout folders for Google Nexus 7 and 10

后端 未结 6 1183
逝去的感伤
逝去的感伤 2020-12-13 10:45

I am developing an application for google nexus 7 and 10. But there is a problem. I don\'t know which layout folder should be used for 7 and 10.

6条回答
  •  猫巷女王i
    2020-12-13 11:32

    To add to @blackbelt, I was testing on my Nexus 7 and on a 600x1024mdpi emulator and found that the two will be considerably off.

    The quick way to fix this would be to create the layout folders:

    layout-sw600dp-land-tvdpi

    layout-sw600dp-port-tvdpi

    This has been tested and verified to work for the Nexus 7 specifically since the tvdpi density is rare.

    So the layout folders:

    layout-sw600dp-land

    layout-sw600dp-port

    would then be for devices with a mdpi density. There are way more devices that fall into the second category, so you really shouldn't rely on using the naming convention without tvdpi to support the Nexus 7.

    This obviously can apply to the Galaxy Note and other devices that are hdpi and so on.

提交回复
热议问题