ApplicationWindow set the screen size ?
-
wrote on 22 Feb 2014, 13:23 last edited by
I trying set the screen size using ApplicationWindow for learning events.When I was running on desktop work well.But when I was running on android ,I encountered trouble problem. When I kept the phone upright and start application, the form fits to screen well. than I tilt the phone and I was seing that the half of screen wrap white color . How can I overcome from this problem. I set the widht and height like that
@ApplicationWindow{
id:a
width:Screen.width
height:Screen.height
color:"#eee8e8"}@ -
wrote on 23 Feb 2014, 01:06 last edited by
I would go and say that your width and height are based on the screen and not on the holding position, that measnt on tilt your width is actually the real height. On fixing this problem you could go ahead and set:
@a.width = Screen.height
a.height = Screen.width@
if the mobile device is hold crosswise. -
wrote on 23 Feb 2014, 09:18 last edited by
Thanks for answer. This recommend solved problem. If I want to set screen on start for not to change again so how can I lock sensors and set the screen one state ?
-
wrote on 23 Feb 2014, 14:01 last edited by
Ugh, i never worket with sensors so i might not help out with that, sorry.
-
wrote on 23 Feb 2014, 14:20 last edited by
ok. Thanks for attention
1/5