Giter Club home page Giter Club logo

transitions-everywhere's Introduction

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


Sample application contain a lot of examples how to use transitions.

Usage

Gradle:

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

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

Changelog

1.6.3
Hidden transitions is moved in main package. Proguard rules are removed. Some internal fixes.

1.6.2
Fixed issue with incorrect disappearing when set of more than one Visibility transitions animates the same view
Added two "extra" transitions: Scale (for scaled appearing & disappearing) and TranslationTransition (animates changes of translationX and translationY)

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.

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.

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>

About library Android Arsenal

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.

Thanks to github users: pardom and guerwan

transitions-everywhere's People

Contributors

andkulikov avatar pardom avatar avinash-bhat avatar ravidsrk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.