TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do I convert a PSD design to Android xml?

1 点作者 dawilster超过 12 年前
Hi everyone,<p>I've been toying with android apps the past couple of days and cannot seem to get my head around the entire UI and layout development.<p>I've been programming in Java for the past year so I'm fairly familiar with the language and I've been front end developing in CSS for a couple years now but I can seem to make the transition.<p>If anybody could point me towards some online resources that would be great.<p>Thanks a lot

2 条评论

georgemcbay超过 12 年前
This is the best place to start:<p><a href="http://developer.android.com/guide/topics/ui/declaring-layout.html" rel="nofollow">http://developer.android.com/guide/topics/ui/declaring-layou...</a><p>Generally speaking, though, your question seems to imply that you expect the conversion process to be fairly direct, splitting up the image into little page sprites as is often done with web pages. That's not at all an ideal way to try to implement an Android UI.<p>Unless you want to take the easy way out and make this a native app that wraps a WebView and do all the layout in HTML you're going to have to spend quite a bit of time reading about Android layouts, the Android resource system and Android styles, all of which are quite different than HTML/CSS. Everything you need to know is on that Android site, and be sure to look through the SDK examples as well.
评论 #4504137 未加载
lutusp超过 12 年前
AFAIK and as an Android developer, I don't think there's a way around the need to hand-edit the XML files that lie behind the Android GUI layout. It's pretty labor-intensive and I don't think there are any shortcuts.<p>There are plenty of gotchas in Android development, but on the other hand, there are plenty of ways to get assistance online, primarily by doing research and looking at other people's code.
评论 #4503891 未加载