# EasyTransition **Repository Path**: ekber/EasyTransition ## Basic Information - **Project Name**: EasyTransition - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-11-03 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EasyTransition A light transition lib(with only 2 files...) for Android, scince shared elements transition is not supported before LOLLIPOP, using EasyTransition can easily make fun transition animation between elements in two activities. Enjoy it! ## ScreenShots ![easytransition](https://github.com/huzenan/EasyTransition/blob/master/screenshots/easy%20transition.gif) ## Usage ### 1.Using same ids between two Views in two layouts. ```xml ``` ### 2.In Activity A, make transition options, and start Activity B with EasyTransition#startActivity. ```java // ready for transition options EasyTransitionOptions options = EasyTransitionOptions.makeTransitionOptions( ActivityA.this, findViewById(R.id.iv_icon), findViewById(R.id.tv_name)); // add as many views as you like // start transition Intent intent = new Intent(ActivityA.this, ActivityB.class); EasyTransition.startActivity(intent, options); ``` ### 3.In Activity B, enter transition when creating, and exit transition when backing. ```java // onCreate EasyTransition.enter(ActivityB.this); // onBackPressed EasyTransition.exit(ActivityB.this); ``` ## Attributes Usage above is only the minimum choice, you can set attributes like duration, time interpolator and so on, have fun!