私はアプリケーションのレイアウトをHTC Sensation用のGalaxy用のものから別のものに変換しようとしています。 画面サイズに応じてlayout-540x960
というフォルダを作成しましたが、このエラーが発生します。invalid resource directory name layout-540x960
どうすれば解決できますか?ありがとう、 Eyal。 HTCセンセーション用の特別なレイアウトディレクトリ
-1
A
答えて
0
レイアウトディレクトリに任意の名前を付けることはできません。異なる画面サイズをサポートするための方法を見つけるために、この記事をお読みください:
http://developer.android.com/guide/practices/screens_support.html
The configuration qualifiers you can use to provide size-specific resources are small, normal, large, and xlarge. For example, layouts for an extra large screen should go in layout-xlarge/.
Beginning with Android 3.2 (API level 13), the above size groups are deprecated and you should instead use the swdp configuration qualifier to define the smallest available width required by your layout resources. For example, if your multi-pane tablet layout requires at least 600dp of screen width, you should place it in layout-sw600dp/.
関連する問題