/Android_Animatable

Standard set of easy to use animations and declarative transitions for Android

Primary LanguageJava

Android_Animatable

AnimatableExplorer example

See [Examples/AnimatableExplorer]folder for an example project demoing animations available out of the box and more.

Animatable Explorer

Animations

Animations are heavily inspired by Animated.css.

Attention Seekers

animatable-attention

  • bounce
  • flash
  • jello
  • pulse
  • rotate
  • rubberBand
  • shake
  • swing
  • tada
  • wobble

Bouncing Entrances

animatable-bouncein

  • bounceIn
  • bounceInDown
  • bounceInUp
  • bounceInLeft
  • bounceInRight

Bouncing Exits

animatable-bounceout

  • bounceOut
  • bounceOutDown
  • bounceOutUp
  • bounceOutLeft
  • bounceOutRight

Fading Entrances

animatable-fadein

  • fadeIn
  • fadeInDown
  • fadeInDownBig
  • fadeInUp
  • fadeInUpBig
  • fadeInLeft
  • fadeInLeftBig
  • fadeInRight
  • fadeInRightBig

Fading Exits

animatable-fadeout

  • fadeOut
  • fadeOutDown
  • fadeOutDownBig
  • fadeOutUp
  • fadeOutUpBig
  • fadeOutLeft
  • fadeOutLeftBig
  • fadeOutRight
  • fadeOutRightBig

Flippers

animatable-flip

  • flipInX
  • flipInY
  • flipOutX
  • flipOutY

Lightspeed

animatable-lightspeed

  • lightSpeedIn
  • lightSpeedOut

Sliding Entrances

animatable-slidein

  • slideInDown
  • slideInUp
  • slideInLeft
  • slideInRight

Sliding Exits

animatable-slideout

  • slideOutDown
  • slideOutUp
  • slideOutLeft
  • slideOutRight

Zooming Entrances

animatable-zoomin

  • zoomIn
  • zoomInDown
  • zoomInUp
  • zoomInLeft
  • zoomInRight

Zooming Exits

animatable-zoomout

  • zoomOut
  • zoomOutDown
  • zoomOutUp
  • zoomOutLeft
  • zoomOutRight

[Usage]

Add maven { url 'https://jitpack.io' } in build.gradle

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  

Add dependency in build.gradle

dependencies {
	        implementation 'com.github.hpkaushik121:Android_Animatable:1.0.1'
	}
<com.sourabh.animateable.Animateable
        android:layout_width="wrap_content"
        app:duration="1000"
        app:animation="bounceIn"
        app:autoStart="true"
        android:layout_height="wrap_content">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
    </com.sourabh.animateable.Animateable>
  • durantion -> Integer

  • autostart -> Boolean

  • animation -> bounce | bounceInRight | bounceInLeft | bounceInUp | bounceInDown | flash | rubberBand | pulse | shake | swing | wobble | tada | standUp | wave | rollin | rollOut | bounceIn | fadeInUp | fadeInDown | fadeInLeft | fadeInRight | fadeOut | fadeOutUp | fadeOutDown | fadeOutRight | fadeOutLeft | flipInX | flipInY | flipOutX | flipOutY | rotateIn | rotateInDownLeft | rotateInDownRight | rotateInUpLeft | rotateInUpRight

  • repeatCount -> Integer

  • repeatMode -> INFINITE | RESTART | REVERSE | START_ON_FIRST_FRAME | ABSOLUTE | RELATIVE_TO_SELF | RELATIVE_TO_PARENT | ZORDER_NORMAL | ZORDER_TOP | ZORDER_BOTTOM

  • startDelay -> Integer

License

[MIT License]