2012-04-09 1 views
-1

HTC Sensation 용으로 Galaxy 용 레이아웃에서 다른 레이아웃으로 변환하려고합니다. 화면 크기에 따라 layout-540x960 폴더를 만들었지 만이 오류가 발생합니다. invalid resource directory name layout-540x960 어떻게 해결할 수 있습니까? 감사합니다. 감사합니다. Eyal.HTC Sensation 용 특별 레이아웃 디렉토리

답변

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/.