Actions for android animations. Inspired by libgdx scene2d actions.

Overview

Android Gems

Android Animations Actions

Actions for android animations. Inspired by libgdx scene2d actions.

The main goal of this project is making creating of complex animations easier. You may create animations like in demo with just a couple lines of code.

##Actions sequence - executes actions sequentially
delay - inserts pause into sequence
run - will run target runnable, useful in sequences
parallel - executes actions at the same time
color - color animation for view
scaleTo - scales view to defined values
scaleBy - scales view by defined values
alpha - alpha animation
fadeIn - fades alpha to 1
fadeOut - fades alpha to 0
rotateTo - rotates view to defined degree
rotateBy - rotates view by defined degree
moveTo - moves view to defined x, y
moveBy - moves view by defined x, y
repeat - repeats action using defined number of times
forever - repeats action infinite

play - plays specified action on specified view

##Interpolations Library contains class Interpolations with different predefined interpolations which may be useful for animations.

Demo

For better quality please check package demo in the project.

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.dtx12:actions:0.1.4'
}
Comments
  • Crash on adding parallel

    Crash on adding parallel

        play(forever(parallel(
                        sequence(
                                scaleBy(2f, 2f, 2, Interpolations.QuadraticEaseOut),
                                scaleBy(-2f, -2f),
                                delay(0.2f)
                        ),
                        fadeOut())
        ), radar);
    

    stacktrace: 8-13318/com.justd.startupfabrictest E/AndroidRuntime: Process: com.justd.startupfabrictest, PID: 13318 java.lang.IllegalStateException: target is not specified! at com.dtx12.android_animations_actions.actions.TypedAction.updateValues(TypedAction.java:68) at com.dtx12.android_animations_actions.actions.TypedAction.start(TypedAction.java:59) at android.animation.AnimatorSet.start(AnimatorSet.java:586) at android.animation.AnimatorSet.start(AnimatorSet.java:586) at com.dtx12.android_animations_actions.actions.RepeatAction.start(RepeatAction.java:53) at com.dtx12.android_animations_actions.actions.Actions.play(Actions.java:506) at com.justd.startupfabrictest.MainActivity.playRadarAnimation(MainActivity.java:69) at com.justd.startupfabrictest.MainActivity.access$000(MainActivity.java:35) at com.justd.startupfabrictest.MainActivity$1$1.run(MainActivity.java:130) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    MainActivity 69 is the first line, with play() function

    bug 
    opened by Defuera 2
  • How i can free a view of the final estates of actions?

    How i can free a view of the final estates of actions?

    Hello I love your library I've just realized that I could not do certain things, how I can free a view of the final states of an animation? and How to change the colors, and how I can stop a forever?

    enhancement 
    opened by kenMarquez 1
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 0
  • The view does not go to the

    The view does not go to the "first place" if moveBy reverse value!

    This is my code:

        LinearInterpolator interpolator = new LinearInterpolator();
        float width = (float) worldMap[0].getWidth();
        //width = 400;
        float duration = 1f;
        play(forever(sequence(moveBy(-width, 0f, duration, interpolator), moveBy(width, 0f, duration, interpolator))), worldMap[0]);
    

    I am trying to make a loop but The view does not go to the first place, and instead it moves left more than moving to right! So, after few seconds, the view goes out of the screen! What is wrong here?

    bug 
    opened by Morteza-Rastgoo 2
  • Sequence method's parameter is too long

    Sequence method's parameter is too long

    The method can be hard to read when the sequence is very long. Maybe the API can be changed to Builder pattern, something like

    play().sequence().fadeOut().fadeIn(2).on(view)

    enhancement 
    opened by markzhai 2
Owner
dtx12
dtx12
[] An Android library which allows developers to easily add animations to ListView items

DEPRECATED ListViewAnimations is deprecated in favor of new RecyclerView solutions. No new development will be taking place, but the existing versions

Niek Haarman 5.6k Dec 30, 2022
Render After Effects animations natively on Android and iOS, Web, and React Native

Lottie for Android, iOS, React Native, Web, and Windows Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations expo

Airbnb 33.5k Jan 4, 2023
Android Transition animations explanation with examples.

UNMAINTAINED No maintainance is intended. The content is still valid as a reference but it won't contain the latest new stuff Android Transition Frame

Luis G. Valle 13.6k Dec 28, 2022
An Android library which provides simple Item animations to RecyclerView items

RecyclerViewItemAnimators Library Travis master: This repo provides: Appearance animations Simple animators for the item views Quick start You can now

Gabriele Mariotti 3.1k Dec 16, 2022
Library containing common animations needed for transforming ViewPager scrolling for Android v13+.

ViewPagerTransforms Library containing common animations needed for transforming ViewPager scrolling on Android v13+. This library is a rewrite of the

Ian Thomas 2.5k Dec 29, 2022
The lib can make the ActivityOptions animations use in Android api3.1+

ActivityOptionsICS 本项目停止维护 =========== f you are thinking on customizing the animation of Activity transition then probably you would look for Activit

Kale 591 Nov 18, 2022
Android library to create complex multi-state animations.

MultiStateAnimation Android library to create complex multi-state animations. Overview A class that allows for complex multi-state animations using An

Keepsafe 405 Nov 11, 2022
Circle based animations for Android (min. API 11)

CircularTools Circle based animations for Android (min. API 11) Currently implemented: Circular reveal Circular transform Radial reaction Reveal:YouTu

AutSoft 209 Jul 20, 2022
Lightweight Android library for cool activity transition animations

Bungee min SDK 16 (Android Jellybean 4.1) written in Java A lightweight, easy-to-use Android library that provides awesome activity transition animati

Dean Spencer 172 Nov 18, 2022
Repository for android animations Rx wrapper

RxAnimations RxAnimations is a library with the main goal to make android animations more solid and cohesive. Download compile 'oxim.digital:rxanim:

Mihael Francekovic 479 Dec 30, 2022
AXrLottie (Android) Renders animations and vectors exported in the bodymovin JSON format. (Using rLottie)

AXrLottie (Android) Renders animations and vectors exported in the bodymovin JSON format. (Using rLottie)

AmirHosseinAghajari 128 Nov 26, 2022
A lightweight android library that allows to you create custom fast forward/rewind animations like on Netflix.

SuperForwardView About A lightweight android library that allows to you create custom fast forward/rewind animations like on Netflix. GIF Design Credi

Ertugrul 77 Dec 9, 2022
Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animations painless.

AnimatableCompose Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animation painless. What you can create from M

Emir Demirli 12 Jan 2, 2023
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.

FragmentTransactionExtended FragmentTransactionExtended is a library which provide us a set of custom animations between fragments. FragmentTransactio

Antonio Corrales 1.1k Dec 29, 2022
Combine ViewPager and Animations to provide a simple way to create applications' guide pages.

WoWoViewPager WoWoViewPager combines ViewPager and Animations to provide a simple way to create applications' guide pages. When users are dragging WoW

Nightonke 2.7k Dec 30, 2022
🌠 Transform into a different view or activity using morphing animations.

TransformationLayout ?? Transform into a different view or activity using morphing animations. Using Transformation motions of new material version. D

Jaewoong Eum 2k Jan 3, 2023
Automatically manipulates the duration of animations dependent on view count. Quicksand .. the more you struggle.

QuickSand When showing a really enchanting explanatory animation to your users, but you know that after a while it'll get tedious and would stop users

Paul Blundell 385 Sep 9, 2022
Animations driven by finger movement

OffsetAnimator OffsetAnimator lets animate objects basing on touchevents, so users can be engaged in an animation process. Usage Add the library to yo

Ruslan Urmeev 314 Nov 24, 2022
Group of libraries to help you build better animations with Jetpack Compose

Group of libraries to help you build better animations with Jetpack Compose

null 36 May 12, 2022