RxAnimations
RxAnimations is a library with the main goal to make android animations more solid and cohesive.
Many more examples in the library github repo.
Download
groovy compile 'oxim.digital:rxanim:0.8.1' compile 'io.reactivex:rxandroid:1.2.1'
Usage
It provides a couple of classes such as RxValueAnimator
, RxObservableValueAnimator
and RxAnimationBuilder
.
Moreover, it also provides many regulary used animation methods (static import) such as fadeIn()
, fadeOut()
, slideIn()
, leave()
etc.
Examples:
- Animating multiple views together
java animateTogether(fadeIn(firstView), fadeIn(secondView));
- Chaining multiple animations seamlessly
java fadeIn(firstView) .concatWith(fadeIn(secondView));
Animation created with Builder automatically pre-transforms the view, if not set otherwise.
I.e. if fadeIn()
is called, views opacity will be set to 0.f before animation starts.
from The Android Arsenal
No comments:
Post a Comment