How do you handle Different screen sizes

Monkey Forums/Monkey Programming/How do you handle Different screen sizes

Aman(Posted 2011) [#1]
This is a serious issue with android and may be windows phones.
There are different approaches to handle this problem. I just want to see if there is a better technique to follow instead of the one I am using now.

What I used to do is calculating the coordinates of an image instead of hard code them. This works find as long as you target devices with close resolutions. but if the resolution differs significantly you will need to scale images
[ or set virtual screen size thanks to diddy :) ]

This is how I handle it. What about you guys?


Dabz(Posted 2011) [#2]
+1 for Diddy too, but, would love it the virtual res stuff stuff sorted aspect ratio and add black borders if the screen size is a bit wonky for my virtual res!

Aye, Diddy's works for me, but, it may be a good idea to look at other stuff, such as:-

http://www.monkeycoder.co.nz/Community/posts.php?topic=1500

As I'm pretty sure Gfk used that in Crime Solitaire (Though, dont quote me on that)

Dabz


GfK(Posted 2011) [#3]
>>>I'm pretty sure Gfk used that in Crime Solitaire

Yep!


therevills(Posted 2011) [#4]
Okay okay... its done ;)

http://code.google.com/p/diddy/source/detail?r=316


Dabz(Posted 2011) [#5]
Cor... You a star Steve! :)

Dabz


Aman(Posted 2011) [#6]
@therevills
Thanks a million, You are a monkey legend :P


Difference(Posted 2011) [#7]
This is great. Will give it a test very soon. Many thanks.