Introduction

Backport of Android Transitions API for animations. Animations backported to Android 4.0+. API compatible with Android 2.2+

Informations

Creator
andkulikov
andkulikov
Git URL:
Language
Java
Min SDK:
Android 2.2
License:
Apache License
Created At:
Oct 15, 2014
Last Updated:
Dec 11, 2017
Star:
3417
Fork:
378
Watcher count:
110
Tags

Description

Transitions Everywhere

Backport of Android Transitions API. Animations backported to Android 4.0+. API compatible with Android 2.2+

About Transitions API

Video - DevBytes: Android 4.4 Transitions
Article about transitions and library (in Russian language)

Simple example

Usage

Gradle:

dependencies {
    compile "com.andkulikov:transitionseverywhere:1.6.1"
}

Use transition classes from package com.transitionseverywhere.* instead of android.transition.* from android framework Transitions API.

Changelog

1.6.1
Bug fix

1.6.0
Merge with final Android Marshmallow SDK
PathMotion aka Curved motion is backported! What is it and how to use it
Bug fixes and performance optimizations. Animations now works on Android 4.0+ (instead of 3.1+ in previous version)

1.5.0
Merge with Android M Preview 2
Migrate to new library package name and maven artifact id:
Please update imports in your classes
from android.transitions.everywhere.* to com.transitionseverywhere
And gradle dependency
from com.github.andkulikov:transitions-everywhere to com.andkulikov:transitionseverywhere

Transitions via XML

If you use XML files to create your transitions you need to put them in the res/anim folder instead of the res/transition folder. You need to use application attributes namespase instead of android:. For example:

<transitionSet xmlns:app="http://schemas.android.com/apk/res-auto"
               app:duration="400">
    <changeBounds/>
    <fade app:fadingMode="fade_in">
        <targets>
            <target app:targetId="@id/transition_title"/>
        </targets>
    </fade>
</transitionSet>

Transition names of views

Android 5.0 adds new method setTransitionName() for View class. With this library you should call TransitionManager.setTransitionName(View v, String transitionName) method instead to provide backward compatibility.

About library

Transition animations backported to Android 4.0+.
For Android ver. >= 2.2 and < 4.0 scene to scene (layout to layout) changes is executed by the same API but without animations.

Note: some of transitions classes was marked as hidden by developers of Android. You can find it in package com.transitionseverywhere.hidden.

Thanks to github users: pardom and guerwan

ProGuard configs

-keep class com.transitionseverywhere.** { *; }
-keep class com.transitionseverywhere.**.** { *; }


Android Arsenal

Discussion