Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
781 views
in Technique[技术] by (71.8m points)

java - Folder name for 7" hdpi tablet Android

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 resolution tablet.

Its working fine with 7" screen (600×1024) with mdpi (160 dpi classification).

Which folder should I create for 7" (600×1024) tablet which has hdpi (240 dpi classification)?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...