views:

132

answers:

0

I have lot of views that I turn up and down using these animations. It will appear like they are pages of a book. I calculate whether I am swiping up or down in screen using the y coordinate value. I obtain the coordinates from the touch.

It works perfectly when I am in portrait mode. The page will only turn from the same corner of the device(which was correct in portrait mode) in whatever orientation I am in. But I want it to turn from the right corner of the edge which is now downwards. For upward swipe the earlier page and for downward swipe the next page are loaded and its working perfectly. Only problem is along with the orientation the page turning corner also is changed

How can I do it? OR will it work only for portrait mode?