ViewPager with Rotational transformation

Viewed 1121

I want to create ViewPager which on swipe rotates around it's getWidth() and getHeight() axis. I tried but all those transformation were only possible with vertical and horizontal with various effect.

Is there any way or hint to develop such kind of ViewPager?

EDIT- Explanation for what kind of rotation it would be

Axis - getWidth, getHeight should be pivot point from which once I swipe it should rotate and for next page it should rotate in from (0, getHeight) axis. To simplify, consider this simple scenario -

  1. There is a circle with 4 parts into it
  2. Currently only 1 part is being displayed and other 3 are outside screen
  3. Once I swipe right to left, ViewPager should rotate from page 1 to page 2.
  4. If I swipe from left to right, ViewPager should rotate from page 1 to page 4.
  5. Both exiting and entering pages should rotate from center of that circle everytime.
  6. Center of the circle is at getWidth, getHeight of the 1st page. So for next page it will always be 0, getHeight as axis and for previous page is will be always getWidth, 0 as axis.
1 Answers
Related