RxAnimation
This is an Android library to make a simple way to animate your views on Android with Rx.

USAGE
Add RxAnimation library via Gradle:
KOTLIN

- Animate your views and handle it in Completable. For example
alpha()
andresize()
:

- If you want to apply animation in the same time you can used
RxAnimation.together()
:

- If you want to apply animation one by one you can used
RxAnimation.sequentially()
instead of multiandThen()
:

- You can also used
RxAnimation.fromView(view)
if you want to update multi properties one by one in the same view:

- You can also use the
range()
function to animate a change on a custom property:
ALL PROPERTIES
Properties | View to Completable | RxAnimation.from(view) |
---|---|---|
alpha | alpha | alpha |
alpha=1 | fadeIn | fadeIn |
alpha=0 | fadeOut | fadeOut |
translationX | translationX | translationX |
translationY | translationY | translationY |
translationX + Y | translation(X, Y) | translation(X, Y) |
scaleX | scaleX | scaleX |
scaleY | scaleY | scaleY |
rotation | rotation | rotation |
rotationX | rotationX | rotationX |
rotationY | rotationY | rotationY |
X | x | x |
Y | y | y |
Z | z | z |
X + Y + Z | xyz | xyz |
backgroundColor | backgroundColor | backgroundColor |
width | width | width |
height | height | height |
width + height | resize | resize |
customProperties | rangeFloatToCompletable | rangeFloat |
customProperties | rangeIntToCompletable | rangeInt |
customProperties | rangeIntToCompletable | rangeInt |
ValueAnimator | start | startValueAnimator |
ViewPropertyAnimator | animate | - |
:information_source: All the functions have duration: Long
, interpolator: TimeInterpolator
& startDelay: Long
properties.