简体   繁体   English

将PSD转换为Android XML(布局)格式?

[英]Convert PSD to Android XML (layout) Format?

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).我正在为我所在机构的一个研究项目编写 Android 应用程序,并且一直在与一位设计师合作,他在 Photoshop 中呈现了一些有吸引力的 UI 模型(使用 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.我想将她的设计实现为我的 Android 应用程序的布局,如果有某种方法可以将文件转换为 XML 格式,这将更简单。 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.我认为 PS 提供 android 模板是相当违反直觉的,但没有真正的方法在 android 设计/布局过程中应用这些模板,没有(试图)模仿她在 Z3501BB093D363810B671059B9 中的艺术作品代码。 Is this conversion possible?这种转换可能吗? Is there something I am missing?有什么我想念的吗?

Thanks谢谢

~Taichou ~太洲

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.但是你可以通过分割她的模型并在你的 GUI 中使用它们来近似它,就像你将网站模板从图像转换为 HTML 一样。

As long as her layouts aren't too terribly complex you should be able to get by with flow layouts or relative layouts.只要她的布局不是太复杂,您应该能够使用流布局或相对布局。

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.右键单击 - 属性 - 背景(在 Eclipse 布局设计中)可能是您正在寻找的内容,但请记住 bitmap 图像在具有不同屏幕分辨率的许多设备上看起来并不相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM