将 PSD 转换为 Android XML(布局)格式?
我正在为我所在机构的一个研究项目编写 Android 应用程序,并且一直在与一位设计师合作,他在 Photoshop(使用 CS5)中渲染了一些有吸引力的 UI 模型。我想将她的设计实现为我的 Android 应用程序的布局,如果有某种方法可以将文件转换为 XML 格式,这将会简单得多。我认为 PS 提供 Android 模板是相当违反直觉的,但没有真正的方法在 Android 设计/布局过程中应用这些模板,缺乏(试图)在 XML 代码中模仿她的艺术作品,而我无法做到这一点。这种转换可能吗?我有什么遗漏的吗?
谢谢
~泰州
I am coding an Android App for a research project at my institution, and have been working with a designer who has rendered some attractive UI mockups in Photoshop (using CS5). I'd like to implement her designs as layouts for my Android application, and this would be WORLDS simpler if there were some way I could convert the files to XML format. I think it's rather counter-intuitive that PS offers android templates, but no real way to apply these in the android design/layout process, short of (attempting to) mimic her artwork in XML code, which I cannot do by any stretch. Is this conversion possible? Is there something I am missing?
Thanks
~Taichou
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道有任何这样的工具。
但是您可以通过分割她的模型并在 GUI 中使用它们来近似它,就像将网站模板从图像转换为 HTML 一样。
只要她的布局不是太复杂,您就应该能够使用流程布局或相对布局。
I'm not aware of any such tool.
But you can approximate it by slicing up her mockups and using them in your GUI like you would convert a website template from an image to HTML.
As long as her layouts aren't too terribly complex you should be able to get by with flow layouts or relative layouts.
右键单击 - 属性 - 背景(在 Eclipse 布局设计中)可能就是您正在寻找的内容,但请记住,位图图像在具有不同屏幕分辨率的许多设备上看起来并不相同。
Right click - properties - Background (in Eclipse layout design) might be what you're looking for, but remember a bitmap image won't look the same on many devices with different screen resolutions.