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 -
- There is a circle with 4 parts into it
- Currently only 1 part is being displayed and other 3 are outside screen
- Once I swipe right to left,
ViewPagershould rotate from page 1 to page 2. - If I swipe from left to right,
ViewPagershould rotate from page 1 to page 4. - Both exiting and entering pages should rotate from center of that circle everytime.
- Center of the circle is at
getWidth,getHeightof the 1st page. So for next page it will always be0,getHeightas axis and for previous page is will be alwaysgetWidth,0as axis.