I want to implement a rotating banner. What control is best suitable for such UI?
here is what it needs to do:
- rotate 1 image per view
- rotate them only on swipe (or what's called onFling())
- remember the index of the current banner and show next banner when user is redirected onto another activity
- rotation is infinite in both directions
So essentially when you land on first activity the first index is shown. When you do swipe it should show next or previous image depending if the swipe is to the left or to the right. This should iterate in the infinite loop.
Thank you in advance
In case anybody wanted the solution, here is the code: