百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

EasyTransition

> 编程语言
开源

轻共享元素过渡 lib for Android.

394 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

轻共享元素过渡 lib for Android.

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

Usage

1.Add the library.

Add to your root build.gradle:

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

Add the dependency:

xml
dependencies {
    compile 'com.github.huzenan:EasyTransition:v1.0.0'
}

2.Using same ids between two Views in two layouts.

xml
    
    
    
    
    

3.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);

4.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!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言