我试图将我的应用程序布局从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. HTC Desire和HTC Sensation的多屏幕
- 2. 布局HTC感觉
- 3. HTC Sensation framebuffer(dev/graphics/fb0)screenshot scrambled image
- 4. 特殊的2与CSS的列布局
- 5. CSS:特殊的流体布局问题
- 6. Wordpress循环中项目的特殊布局
- 7. keybd_event,特殊字符和键盘布局?
- 8. cmake在特殊目录中放置特殊目标
- 9. Android:针对HTC Sensation设置USB调试的问题
- 10. 来自FTP目录的特殊字符
- 11. 更改SBT项目的目录布局
- 12. 纯Ruby项目的目录布局
- 13. Android HTC Sensation屏幕分辨率QHD截取
- 14. Android LayerDrawable.setDrawableByLayerId不工作在HTC Sensation(和其他?)
- 15. 层次结构查看器不工作与HTC Sensation
- 16. 目录名称包含特殊字符
- 17. Linux C++项目目录布局 - CMake
- 18. Python项目和包目录布局
- 19. C#项目标准目录布局
- 20. PHP Composer项目标准目录布局
- 21. Django的目录布局的解释
- 22. 一个特殊的iOS对象的图形布局
- 23. golang意想不到的目录布局
- 24. php产品目录的表格布局
- 25. Checkstyle和Maven的标准目录布局
- 26. PHPUnit测试的目录布局?
- 27. 构建Oracle DB;好的目录布局
- 28. 不同的主题布局目录
- 29. For循环中第一行的特殊列布局
- 30. 布局带有特殊分部的组件