All Projects → florent37 → RxAnimator

florent37 / RxAnimator

Licence: Apache-2.0 license
An RxJava2 binding for android Animator

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to RxAnimator

Rxretrojsoup
A simple API-like from html website (scrapper) for Android, RxJava2 ready !
Stars: ✭ 492 (+515%)
Mutual labels:  rxjava, observable, rx, rxjava2
Rxbluetooth
Android reactive bluetooth
Stars: ✭ 405 (+406.25%)
Mutual labels:  rxjava, rx, rxjava2
Rxgps
Finding current location cannot be easier on Android !
Stars: ✭ 307 (+283.75%)
Mutual labels:  rxjava, rx, rxjava2
Freezer
A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Stars: ✭ 326 (+307.5%)
Mutual labels:  rxjava, rx, rxjava2
Rxlifecycle
Rx binding of stock Android Activities & Fragment Lifecycle, avoiding memory leak
Stars: ✭ 131 (+63.75%)
Mutual labels:  rxjava, observable, rxjava2
RxHttp
基于RxJava2+Retrofit+OkHttp4.x封装的网络请求类库,亮点多多,完美兼容MVVM(ViewModel,LiveData),天生支持网络请求和生命周期绑定,天生支持多BaseUrl,支持文件上传下载进度监听,支持断点下载,支持Glide和网络请求公用一个OkHttpClient⭐⭐⭐
Stars: ✭ 25 (-68.75%)
Mutual labels:  rxjava, rxjava2
Rxble
使用 RxJava 封装的低功耗蓝牙类库
Stars: ✭ 203 (+153.75%)
Mutual labels:  rxjava, rxjava2
Nohttprxutils
🐠 本库是一款Android-Http标准协议网络通讯框架,基于RxJava+NoHttp封装。支持文件上传和断点续传、文件下载和断点下载、Http协议和Https协议队列网络请求、网络请求轮询。
Stars: ✭ 214 (+167.5%)
Mutual labels:  rxjava, rx
Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (+185%)
Mutual labels:  rxjava, rxjava2
Rxbus
Event Bus By RxJava.
Stars: ✭ 2,126 (+2557.5%)
Mutual labels:  rxjava, rxjava2
Rxfit
🏃Reactive Fitness API Library for Android and RxJava
Stars: ✭ 218 (+172.5%)
Mutual labels:  rxjava, rxjava2
Android Mvvm Architecture
This repository contains a detailed sample app that implements MVVM architecture using Dagger2, Room, RxJava2, FastAndroidNetworking and PlaceholderView
Stars: ✭ 2,720 (+3300%)
Mutual labels:  rxjava, rxjava2
Reactivewifi
Android library listening available WiFi Access Points and related information with RxJava Observables
Stars: ✭ 186 (+132.5%)
Mutual labels:  rxjava, rxjava2
Androidbasemvp
🚀一个快速搭建MVP+RxJava2+Retrofit 基础框架,主要是封装有Http网络请求、日志、缓存、加载等待、toast、页面状态布局管理、权限、RxBus、Glide图片加载等组件,方便快速开发新项目、减少开发成本。
Stars: ✭ 184 (+130%)
Mutual labels:  rxjava, rxjava2
Rxjava3 Android Examples
RxJava 3 Android Examples - Migration From RxJava 2 to RxJava 3 - How to use RxJava 3 in Android
Stars: ✭ 213 (+166.25%)
Mutual labels:  rxjava, rxjava2
Rxpermission
Reactive permissions for Android
Stars: ✭ 182 (+127.5%)
Mutual labels:  rxjava, rxjava2
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (+3005%)
Mutual labels:  rxjava, rxjava2
RxComponentLifecycle
Rx binding of new Android Architecture Component Lifecycle
Stars: ✭ 57 (-28.75%)
Mutual labels:  observable, rx
kotlin-maze
🚂 A simple way to implement applications using observable streams
Stars: ✭ 56 (-30%)
Mutual labels:  observable, rxjava2
Pharmacist
Builds observables from events.
Stars: ✭ 221 (+176.25%)
Mutual labels:  observable, rx

RxAnimator

An RxJAva2 binding for android Animator

Android app on Google Play

Run sequencially

RxAnimator.ofFloat(view, "translationY", 0, 300).animationDuration(500)
          .flatMap(anim -> RxAnimator.ofFloat(view, "translationX", 0, 300))
          .subscribe(anim -> {});

RxAnimator contains the same methods as ValueAnimator`

.animationDuration(long)

.animationStartDelay(long)

.animationInterpolator(interpolator)

.animationEvaluator(evaluator)

...

Run in parallel

(Using RxBindings for the click observable)

RxView.clicks(view)
          .flatMap(animation ->
                  Observable.zip(
                          RxAnimator.ofFloat(view, "scaleX", 5),
                          RxAnimator.ofFloat(view, "scaleY", 5),
                          RxAnimator.ofFloat(view, "translationY", 300),
                          RxAnimator.ofFloat(view, "translationX", 200),
                          (a, a2, a3, a4) -> a
                  )
          )
          .flatMap(animation ->
                  Observable.zip(
                          RxAnimator.ofFloat(view, "scaleX", 1),
                          RxAnimator.ofFloat(view, "scaleY", 1),
                          RxAnimator.ofFloat(view, "translationX", 0),
                          RxAnimator.ofFloat(view, "translationY", 0),
                          (a, a2, a3, a4) -> a
                  )
          )
          .subscribe(animation -> {});

Trigger event

By default the observable submits when the animator ends You can configure it using .animationTriggerEvent(Event.START / Event.END / Event.CANCEL / EVENT.RESTART)

Download

Buy Me a Coffee at ko-fi.com

In your module Download

compile 'com.github.florent37:rxanimator:1.0.0'

Credits

Author: Florent Champigny

Android app on Google Play Follow me on Google+ Follow me on Twitter Follow me on LinkedIn

#License

Copyright 2017 florent37, Inc.

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].