Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

Stick view to side of device no matter the orientation

$
0
0

Hey, is it possible to have a view stick to one side of the device no matter how many times you rotate it? I tried detecting the orientation change, but all that does is make an animation that is not pretty. What I am thinking of is possibly getting the previous orientation, detecting how many times to view was turned, and rotate the buttons to the orientation while having the view in the same side of the device. The function would return a 1 being 1 time clockwise, or a -1 being one time counterclockwise etc.

Here is my current experiment/example of what I'm trying to do using orientation change and having it dynamically change the position according to the device...but the animations aren't that special.

So I need help with this, have any suggestions to make it look smooth?


Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles



Latest Images