Folder name for 7" hdpi tablet Android

前端 未结 3 1840
旧时难觅i
旧时难觅i 2020-12-02 01:32

I have Tablet with 7\" screen (600×1024) with hdpi (240 dpi classification).

I have created folder layout-sw600dp. But it\'s not working in this resolut

3条回答
  •  旧巷少年郎
    2020-12-02 01:56

    It depends from the Android API version you're building against, like mentioned here:

    ... However, this won't work well on pre-3.2 devices, because they don't recognize sw600dp as a size qualifier, so you still have to use the large qualifier as well. So, you should have a file named res/layout-large/main.xml which is identical to res/layout-sw600dp/main.xml. In the next section you'll see a technique that allows you to avoid duplicating the layout files this way.

    You should also take a look here:

    Preparing for Handsets

    and

    New Tools For Managing Screen Sizes

提交回复
热议问题