Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old November 6th, 2012, 11:59 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Exclamation How to make developing easier when designing?

I have a question: My developer does math for matching dimensions between the screens I (the designer) give and the layout she makes. There is a formula for it, but she forgets after a project is over and she has to start all over again. Is there anything I can do as a designer to minimize her head banging hours. Is there a certain formula or layout I should design around to make things a bit easier for her. Thank you to anyone who responds it is greatly appreciated.

Advertisements
mags1754 is offline  
Reply With Quote
sponsored links
Old November 6th, 2012, 07:40 PM   #2 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

If you are manually calculating the proper dimensions, you are doing it wrong. Android provides some very good mechanism to allow for device independant layouts, including dynamic layouts, device independent pixels, an dynamic asset utilization.

Take a look at this:
Supporting Multiple Screens | Android Developers
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
mags1754 (November 8th, 2012)
Old November 8th, 2012, 05:05 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Problem in short is,

1) When we design screens, should we design for a specific screen size and screen density?

2) How to match all the units from photoshop to layout xmls? - Points/pixels in photoshop should be matched to sp(font sizes) and dip(for other dimensions).
mags1754 is offline  
Reply With Quote
Old November 8th, 2012, 09:30 PM   #4 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

Well, you will need to start somewhere, right? The way we do it, we normally just pick our favorite tester and treat it as the "target" screen size. This is generally the largest device we have, as scaling down is much "cleaner" than scaling up, but this isn't really a necessity.

Unfortunately, I don't have an answer to this question. According to this thread on stack overflow, it's possible to do the conversion programaticaly, but you shouldn't really be doing any UI development programatically, as mentioned before. The only thing I can suggest, is to, again, pick a target screen size, design your UI in PS using this target screen size as a base and then use trial and error to place/size your components via XML in an attempt to get them as close to the original design as possible.
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
mags1754 (November 9th, 2012)
Old November 24th, 2012, 06:39 AM   #5 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 4
 
Device(s): HTC Desire S, Asus eeePad Transformer TF101
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mags1754 View Post
Problem in short is,

1) When we design screens, should we design for a specific screen size and screen density?

2) How to match all the units from photoshop to layout xmls? - Points/pixels in photoshop should be matched to sp(font sizes) and dip(for other dimensions).
In our project we use next approach - design in photoshop for mdpi screen, so every pixel in ps = 1dp in android layout. and then we've resized all graphics for other screens (ldpi/hdpi/xhdpi) using special script
Kirumbik is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:56 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.