Skip to content
A compat library of android shared-element transition for lower api.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
library
sample
screenshot
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat first commit,release version 1.0.0 . May 31, 2018
settings.gradle

README.md

CySharedElementTransition

A compat library of android shared-element transition for lower api.

一个为Android较低版本api提供Android共享元素转场动画的兼容库。

ScreenShot

easytransition

Download from Gradle

Add to your root build.gradle:

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

Add the dependency:

dependencies {
        implementation 'com.github.ausboyue:CySharedElementTransition:1.0.1'
}

Friendly Hints

If you can't download it, maybe you have used the Google's repository that you can't connect to the Google server.Please open the proxy or top the target repository.As follows:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' } // target repository,be top
        jcenter()
        google() // Google's repository
    }
}

Download from Maven

Add the JitPack repository to your build file:

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>

Add the dependency:

<dependency>
    <groupId>com.github.ausboyue</groupId>
    <artifactId>CySharedElementTransition</artifactId>
    <version>1.0.1</version>
</dependency>

Get Started

1. ActivityA jump to ActivityB,when need use "SharedElementTransition":

  • ActivityA edit code as below:
    CySharedElementTransition.startActivity(intent, activityA, view1, view2, view...);
  • ActivityB edit code as below:
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ......
        CySharedElementTransition.runEnterAnim(activityB);
        ......
    }

2. ActivityB back to ActivityA:

  • ActivityB edit code like this:
    @Override
    public void onBackPressed() {
        CySharedElementTransition.runExitAnim(activityB);
    }

Bugs Report

If you find any bug when using it, please contact me. Thanks for helping me making better.

Author

Cheny - @ausboyue on GitHub, @www.icheny.cn

Other

Please give me some time to update the documentation.

Release note

1.0.1

  • release version v1.0.1
  • fix one bug

1.0.0

  • release first version v1.0.0
  • nothing now
You can’t perform that action at this time.