+1
Beantwortet
detecting device orientation changes
Is it possible for a Wire to detect device orientation changes? If so, what's the best way to do that?
Customer support service by UserEcho
Try this out:
<wire>
<panel name="sqaure" background="#449977" width="50" height="50" lwidth="300" lheight="300" align="center" valign="center" lalign="right" lvalign="bottom"/>
</wire>
When you run this Wire you will see that in portait mode the square is 50x50 in the middle of the screen, but when you rotate to landscape the "l" parameters takes over and resize and repositions the object. There are a lot of l parameters- check out the docs for a full list- they are all very useful.
You can also query the current orientation in an action tag by asking any object using an [object:myobject.orientation] token. The token will substitute to either "portrait" or "landscape" depending on how the user is holding the device.
I hope this helps!
Thanks.
This should be out in the next week or so. I think you will find it very useful!