我試圖將我的應用程序佈局從Galaxy版本轉換爲HTC Sensation版本。 我已經根據屏幕大小創建了一個文件夾layout-540x960
,但我得到這個錯誤:invalid resource directory name layout-540x960
它是如何解決的? 謝謝, Eyal。HTC Sensation的特殊佈局目錄
-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/.
相關問題
- 1. 佈局Galaxy S2和HTC Sensation
- 2. 三星Galaxy S3和HTC Sensation使用錯誤的佈局文件
- 3. HTC Desire和HTC Sensation的多屏幕
- 4. Android HTC Sensation分辨率QHD
- 5. 佈局HTC感覺
- 6. HTC Sensation framebuffer(dev/graphics/fb0)screenshot scrambled image
- 7. 特殊的2與CSS的列布局
- 8. CSS:特殊的流體佈局問題
- 9. Wordpress循環中項目的特殊佈局
- 10. 如何在特殊目錄
- 11. css flexbox特殊2列布局
- 12. keybd_event,特殊字符和鍵盤佈局?
- 13. cmake在特殊目錄中放置特殊目標
- 14. Android:針對HTC Sensation設置USB調試的問題
- 15. 在HTC Sensation上的NPE,在模擬器中工作
- 16. Eclipse無法識別我的Android手機(HTC Sensation)
- 17. 來自FTP目錄的特殊字符
- 18. 純Ruby項目的目錄佈局
- 19. 更改SBT項目的目錄佈局
- 20. HTC Sensation不能全屏顯示應用程序
- 21. Android HTC Sensation屏幕分辨率QHD截取
- 22. 層次結構查看器不工作與HTC Sensation
- 23. Android LayerDrawable.setDrawableByLayerId不工作在HTC Sensation(和其他?)
- 24. HTC Sensation無法在Linux中進行調試
- 25. 目錄名稱包含特殊字符
- 26. Python項目和包目錄佈局
- 27. C#項目標準目錄佈局
- 28. PHP Composer項目標準目錄佈局
- 29. Linux C++項目目錄佈局 - CMake
- 30. 特定類別項目的佈局