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

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

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

Thanks: 0
Thanked 0 Times in 0 Posts
Default Layout/Graphics question

Hi, I am working on porting an iOS game to Android and I'm confused about some things. I read through the "Supporting Multiple Screens" guide page, but I still need some more help. Our artist made a lot of pretty but complex UIs out of images that take up the whole size of the iPhone (320dp x 480dp [actually 640 x 960]).
I understand that she has to design new images and layouts for the different screen sizes so that I can make different layout-_____.xml pages, but I'm not sure how to tell her to do that. The guide page has a range of resolutions for each size, but we want the UIs to always fill the page and look correct for every size screen. In practice, is there just one resolution per "size" that we can assume, or will we just have to have small gaps sometimes?
I feel like there is a logical and simple solution to this since I haven't found many other threads about it, but I am at a loss.

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

Thanks: 235
Thanked 478 Times in 292 Posts
Default

She doesn't need to create multiple layouts for every screen size. In fact, it's entirely possible to only use one layout for every screen size. You just need to remember not to use pixel measurements, but instead using device independant pixels (dip or dp). Also, Android's dynamic layouts are very powerful if used correctly, so things can be placed and sized in a manner that looks the same on every device.
__________________
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
Old November 5th, 2012, 02:36 AM   #3 (permalink)
Junior Member
 
Join Date: Aug 2012
Location: Athens, Greece
Posts: 42
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 7 Times in 7 Posts
Default

In my opinion there isn't an easy and simple solution for this problem. It is one thing to design a UI for a single screen and another thing to design it for multiple screen resolutions and multiple screen sizes.

Start from reading (again and again) the Supporting Mulitple Screens in Android's documentation. The Testing your application section I've linked is particularly useful. From the combinations (screen size and screen resolution) select two or three and give them to your artist. Consult the Screen Sizes and Densities dashboard to see which combinations matter the post.

After the designs have been handed to you, then your developer team will start the implementation of the dynamic layouts. You will do that using different drawable folders, styles and all the advices presented in the article.

Let's say for example that your designer has created a UI for large screens and 480x800 resolution. You need to make sure that the UI looks OK for a 480x854 large screen as well. To do that you need to avoid absolute pixel measurements and use dip. For medium screens and 1024x768 resolution the designer's UI could be different. 1280x768, 1280x800 are similar resolutions and will be supported by the same xml layout.
Kostas G 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 05:55 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.