All Projects → 0ximDigital → Rxanimations

0ximDigital / Rxanimations

Licence: apache-2.0
Repository for android animations Rx wrapper

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxanimations

Rxjava Mvp Giphy
Showcase of RxJava used with MVP and some other popular android libraries
Stars: ✭ 429 (-12.09%)
Mutual labels:  rxjava
Rxbasicskata
Practical challenges for RxJava learners
Stars: ✭ 449 (-7.99%)
Mutual labels:  rxjava
Rxpaparazzo
RxJava extension for Android to take images using camera and gallery and pick files up
Stars: ✭ 467 (-4.3%)
Mutual labels:  rxjava
Rxriddles
Riddling your way to master RxJava
Stars: ✭ 440 (-9.84%)
Mutual labels:  rxjava
Android Mvvm
MVVM on Android using RxJava and Data Binding
Stars: ✭ 443 (-9.22%)
Mutual labels:  rxjava
Reductor
Redux for Android. Predictable state container library for Java/Android
Stars: ✭ 460 (-5.74%)
Mutual labels:  rxjava
Rxdownload
A multi-threaded download tool written with RxJava and Kotlin
Stars: ✭ 4,035 (+726.84%)
Mutual labels:  rxjava
Viabus Architecture
让 Android 开发可以像流水线一样高效的,职责分离架构 ⚡ 不同于 MVP 的配置解耦,也不能和 似是而非 的 MVVM - Clean 同日而语。VIABUS 是世界范围内首个明确提出,通过职责分离,来真正实现 UI 和 业务并行开发的 Android 项目级开发架构和设计模式理念。
Stars: ✭ 485 (-0.61%)
Mutual labels:  rxjava
Gank
干货集中营 app 安卓实现,基于 RxFlux 架构使用了 RxJava、Retrofit、Glide、Koin等
Stars: ✭ 444 (-9.02%)
Mutual labels:  rxjava
Livedata Ktx
Kotlin extension for LiveData, chaining like RxJava
Stars: ✭ 466 (-4.51%)
Mutual labels:  rxjava
Andlinker
AndLinker is a IPC library for Android, which combines the features of AIDL and Retrofit. Allows IPC call seamlessly compose with RxJava and RxJava2 call adapters.
Stars: ✭ 440 (-9.84%)
Mutual labels:  rxjava
Roxie
Lightweight Android library for building reactive apps.
Stars: ✭ 441 (-9.63%)
Mutual labels:  rxjava
Mdplayer
🔥 MDPlayer,Android万能播放器,支持视频大小窗口无缝切换,基于ijklayer+MVP+RxJava+Retrofit+Material Design开发。
Stars: ✭ 463 (-5.12%)
Mutual labels:  rxjava
Ticker
An Android text view with scrolling text change animation
Stars: ✭ 4,194 (+759.43%)
Mutual labels:  android-animation
Reprint
A unified fingerprint library for android.
Stars: ✭ 467 (-4.3%)
Mutual labels:  rxjava
Weatherapp
5 Day Forecast app that works on Android and uses latest tools (Kotlin, Navigation, Room, LiveData, Databinding, Dagger 2)
Stars: ✭ 426 (-12.7%)
Mutual labels:  rxjava
Rxfile
Rx methods to get a File and Image or Video thumbnails from a Document Provider on Android (Drive, Dropbox etc)
Stars: ✭ 452 (-7.38%)
Mutual labels:  rxjava
Mediumclap Android
👏 The Medium's Clapping Effect developed in Android
Stars: ✭ 485 (-0.61%)
Mutual labels:  android-animation
Bilibili Android Client
An unofficial bilibili client for android http://www.jianshu.com/p/f69a55b94c05 -- 该项目已停止维护!
Stars: ✭ 4,430 (+807.79%)
Mutual labels:  rxjava
Android Mvp Architecture
This repository contains a detailed sample app that implements MVP architecture using Dagger2, GreenDao, RxJava2, FastAndroidNetworking and PlaceholderView
Stars: ✭ 4,360 (+793.44%)
Mutual labels:  rxjava

RxAnimations

Download API

RxAnimations is a library with the main goal to make android animations more solid and cohesive.

Download

  compile 'oxim.digital:rxanim:0.9.1'
    
  compile 'io.reactivex:rxandroid:1.2.1'
  compile 'io.reactivex:rxjava:1.2.5'

RxJava version compatibility:

This RxAnimations library is only compatible with rxJava 1 greater than 1.2.x.
If you are using rxJava 1.1.x version, take a look here.

If you are searching for the one compatible with rxJava 2, take a look over here.

Usage

A sample project which provides code examples that demonstrate uses of the classes in this project is available in the sample-app/ folder.

True power of this library is the ability to use animations as an observable asynchronous action.
That enables us to apply regular rxJava APIs on the animations.

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
        animateTogether(fadeIn(firstView),
                        fadeIn(secondView));
  • Chaining multiple animations seamlessly
        fadeIn(firstView)
            .concatWith(fadeIn(secondView));
  • Simple ValueAnimator usage with RxValueAnimator
        final ValueAnimator opacityAnimator = ValueAnimator.ofFloat(0.f, 1.f);
        RxValueAnimator.from(opacityAnimator, animator -> view.setAlpha((float)animator.getAnimatedValue()))
  • Animating multiple values together with RxObservableValueAnimator
        xObservableAnimator = RxObservableValueAnimator.from(xAnimator);
        yObservableAnimator = RxObservableValueAnimator.from(yAnimator);
        
        Observable.combineLatest(xObservableAnimator.schedule(),
                                 yObservableAnimator.schedule(),
                                 (first, second) -> new Pair(first, second))
                  .subscribe(this::updateView);
  • Defining custom animations with RxAnimationBuilder
        RxAnimationBuilder.animate(view, DURATION)
                          .interpolator(INTERPOLATOR)
                          .fadeIn()
                          .rotate(DEGREES)
                          .translateBy(X, Y)
                          ...
                          .schedule([ | false]);

Animation created with RxAnimationBuilder automatically pretransforms the view, if not set otherwise.
I.e. if fadeIn() is called, views opacity will be set to 0.f before animation starts.

Managing animations

Starting animation - Every animation chain is started when we subscribe to it.
Ending animation - Animations can be easily stopped by unsubscribing animation subscription.

LICENSE

Copyright 2016 Mihael Franceković

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].