InfiniteCards
An infinite card switching UI for Android, support custom animation.
Screenshot
Gradle via JitPack
Add it in your root build.gradle at the end of repositories:
Add the dependency
Attrs
- animType : animation type
- front : move the selected card to first
- switchPosition : move the selected card to first, and the first card to the selected position
- frontToLast : move the first card to last position
- cardRatio : ratio of the card
- animDuration : duration of each card's animation
- animAddRemoveDelay : delay of animation of add and remove between each card
- animAddRemoveDuration : duration of add and remove each card's animation
How to use
layout in xml
Set Adapter
Just extends the BaseAdapter
Animation transformers and interpolators
Default
If you just use all default animations, just do nothing.