SkillAgentSearch skills...

CySharedElementTransition

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

Install / Use

/learn @ausboyue/CySharedElementTransition
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.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.1</version>
</dependency>

Get Started

1. ActivityA(or FragmentA) jump to ActivityB,when need use "SharedElementTransition":

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

2. ActivityB back to ActivityA(or FragmentA):

  • ActivityB edit code like this:
    @Override
    public void onBackPressed() {
        CyTransition.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.1

  • support Fragment
  • simplify code
  • upgrade library sdk

1.0.1

  • release version v1.0.1
  • fix one bug

1.0.0

  • release first version v1.0.0
  • nothing now
View on GitHub
GitHub Stars65
CategoryDevelopment
Updated2y ago
Forks6

Languages

Java

Security Score

65/100

Audited on Oct 10, 2023

No findings