Page 1 of 1

Android Screen-Resolutions?

Posted: Wed May 01, 2013 3:59 pm
by DevBoyLars
Hi there,
is there a list for the most recent screen-resulotions on Android, which my App should supports?

Re: Android Screen-Resolutions?

Posted: Thu May 02, 2013 7:06 pm
by jacque
Go to Wikipedia and search for "Android screen resolutions". There's a huge gigantic table there. You'll see that the dimensions are all over the map, it is almost impossible to target any particular one. It's better to calculate a width/height ratio and use that to resize and position all the controls. There are glitches with that method too though -- for example, you don't want to resize a button so that on small screens it becomes too tiny to hit.

If it helps, one of the Kickstarter goals is to make all this easier. I can't wait.

Re: Android Screen-Resolutions?

Posted: Thu May 02, 2013 9:28 pm
by DevBoyLars
Yes, I can't wait to. It's horrible right now -.-

How do you handle it, if there are screen-resolutions, which are not proportional like the difference between iPhone 4 and iPhone 5?

If I would resize everything proportional, it would means, that there is free space on an iPhone 5 on the top or bottom.

Re: Android Screen-Resolutions?

Posted: Fri May 03, 2013 6:36 pm
by jacque
A proportional resize won't break between the different iPhones, just as it won't break on all those Android sizes. Part of the resizing is determining where objects are located, which you do using percentages. For example, to place an object near the top of the screen, determine what percentage of the screen the top should be at. Maybe it's 10% down from the top. Then after resizing the rectangle, you place the object at 10% of the screen height and it fits. There are two dimensions to resizing -- the rectangles of the objects themselves, and their placement on the screen.

Re: Android Screen-Resolutions?

Posted: Sun May 05, 2013 11:46 am
by DevBoyLars
Oh ok, thanks for this information. It will helps me much I think :)

I'm still working to find the right way for me to build mobile Apps for iOS and Android in one App.

mobGUI is a great start for me, but there a much limits. So I'll try the manually resizing way :D

Re: Android Screen-Resolutions?

Posted: Wed May 08, 2013 10:17 am
by DevBoyLars
jacque wrote:A proportional resize won't break between the different iPhones, just as it won't break on all those Android sizes. Part of the resizing is determining where objects are located, which you do using percentages. For example, to place an object near the top of the screen, determine what percentage of the screen the top should be at. Maybe it's 10% down from the top. Then after resizing the rectangle, you place the object at 10% of the screen height and it fits. There are two dimensions to resizing -- the rectangles of the objects themselves, and their placement on the screen.
How can I set an object to for example 10% of the screen height? Can I enter the % anywhere?

Re: Android Screen-Resolutions?

Posted: Wed May 08, 2013 7:00 pm
by jacque

Code: Select all

set the height of <obj reference> to the height of this cd * 0.1
Then you will probably want to set the top of the object as well. Use the same calculation to find a percentage of the card height so you know where the top should be.

Re: Android Screen-Resolutions?

Posted: Wed May 08, 2013 9:39 pm
by DevBoyLars
Great! It's too bad, that there's no option to enter % directly in the inspector!

Re: Android Screen-Resolutions?

Posted: Thu May 09, 2013 5:42 am
by jacque
One of the stretch goals from the Kickstarter is to add more automatic resizing routines. Many people will cheer when that happens. :)

Re: Android Screen-Resolutions?

Posted: Thu May 09, 2013 9:02 am
by DevBoyLars
Hope that comes soon :D

Re: Android Screen-Resolutions?

Posted: Thu May 09, 2013 1:45 pm
by Simon
Hi Lars,
You see now that using this method is the same as I showed you before?
Has something changed?

Simon

Re: Android Screen-Resolutions?

Posted: Thu May 09, 2013 1:53 pm
by DevBoyLars
Simon wrote:Hi Lars,
You see now that using this method is the same as I showed you before?
Has something changed?

Simon
Yes :) Thx again, I'm trying to work now with the altMobileResizer until LC includes this feature.

I rebuild my latest App from scratch again. There are still some things I'm missing (for example the possibility to show on an iPad another structure as on an iPhone without duplicated buttons in different groups or substacks).

But now I'm thinking that this way will be much better, as you showed me before :)