TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby dawilsterover 12 years ago
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 comments

georgemcbayover 12 years ago
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 未加载
lutuspover 12 years ago
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 未加载