Giter Club home page Giter Club logo

cysharedelementtransition's Introduction

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

cysharedelementtransition's People

Contributors

ausboyue avatar

Stargazers

 avatar carey avatar Lindong avatar puyf avatar qmmm61 avatar Loen avatar Tom avatar StanleyXiao avatar  avatar 胖子雷神 avatar  avatar Fritz avatar  avatar nodyang avatar  avatar aeasringnar avatar  avatar xxxgod avatar  avatar 李虎头 avatar YuJie Wang avatar HuanXiang avatar  avatar  avatar ydong avatar ingramchen avatar 西行寺幽幽子 avatar  avatar FairyEver avatar  avatar Chris avatar Haibo avatar  avatar  avatar  avatar  avatar zhuxiaoyu avatar  avatar yishuinanfeng avatar  avatar  avatar 小鬼难缠 avatar  avatar Afer avatar  avatar yanxuwen avatar Mr. li avatar 萌新小前端 avatar shuleisanshi avatar Double Sun avatar  avatar dujiang avatar Gaygay avatar  avatar XiaoL avatar Jingyu Wang avatar  avatar  avatar zhuxiaole avatar  avatar  avatar  avatar  avatar ZhangAcer avatar  avatar

Watchers

James Cloos avatar  avatar

cysharedelementtransition's Issues

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.