1

今日メッセージを書くとしたら、Android のフォルダ ツリー レイアウトの詳細を取得するためです。

ここで警告したいのですが、さまざまな画面サイズのサポートに関する公式ドキュメントのすべてのページを読みました。非常に完全ですが、私の意見では、実際には人間が読めるものではありません。そのため、ドキュメントへのリンクをそのままコピーしないでください。

私の質問は簡単です:

さまざまな画面サイズを最大限にサポートするには、レイアウト フォルダの最適な組み合わせは何ですか?

Honeycomb の前には、layout、layout-large、layout-xlarge などがありました...それで問題ありませんが、現在は sw600dp、sw360dp、sw があります...

私の場合、Android 用のアプリケーションを作成する必要があり、最大限のサポートを確保する必要があります。

手元にいくつかのデバイスがあります:

Galaxy Note 10.1 Galaxy Nexus Nexus S Nexus 7 そして... Samsung Galaxy Spica (GT-5700)

そして、ここに私のレイアウトフォルダーがあります:

layout
layout-sw360dp (for Galaxy Nexus)
layout-sw600dp (for Nexus 7)
layout-sw720dp (for Galaxy Note 10.1)
layout-480x320 (for GT-5700)

(および layout-*-lands)

Nexus S がレイアウト フォルダを選択すると思っていたのに、480x320 のレイアウトが必要なのはなぜですか?

だから私はいくつかの質問があります:

1. Am I in the right direction?

2. Is it always necessary to create folders layout-large, layout-xlarge ... ? If so what should I put inside?

3. I do think the folder layout-480x320 is not a good solution, but I try to do things well and not make this folder is not enough.

誰かが物事を正しく行う方法を明確に教えてもらえますか?

ありがとうございました!

4

1 に答える 1

1

What is the best combination of layouts folders to ensure maximum support for different screen sizes ?

That is impossible to answer in the abstract.

Am I in the right direction?

-layout-WxH has been deprecated for a couple of years.

Is it always necessary to create folders layout-large, layout-xlarge ... ?

No. If you are not concerned about Android 2.x -large or -xlarge devices (e.g., Kindle Fire, NOOK) or Android 3.1 devices (0.4% of the market as of November 2012), then skipping -large and -xlarge is perfectly fine.

However, -small may still be relevant for you, for devices with very small screen sizes (under 3" diagonal), if you are supporting such devices.

I do think the folder layout-480x320 is not a good solution

Correct.

I try to do things well and not make this folder is not enough.

Then design a more flexible UI for -layout.

于 2012-11-22T19:17:03.303 に答える