Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

activity间跳转时增加动画是很常见的需求,我花了些时间整理了一下,包括使用传统补间动画以及转场动画(API>=21)的方式实现 。希望对大家有用

Notifications You must be signed in to change notification settings

tuikes/SceneTransitionAnimation

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SceneTransitionAnimation

activity间跳转时增加动画是很常见的需求,我花了些时间整理了一下,包括使用传统补间动画以及转场动画(API>=21)的方式实现 。

方式一:在调用startActivity或者finish activity时,使用overridePendingTransition实现

ABC

方式二:在主题中设置,如果是application引用的主题中设置,则对整个app均有影响。

ABC

方式三:通过使用系统自带的转场动画效果(Slide/Explode/Fade)方式打开activity

ABC

方式四:通过在主题中设置转场动画(Slide/Explode/Fade)实现;如果是在application引用的主题中设置,则对整个app均有影响。

ABC

方式五:通过在转场动画中增加共享元素实现activity跳转时相关元素动画效果

ABC

方式六:通过在转场动画中增加多个共享元素实现activity跳转时相关元素动画效果

ABC

About

activity间跳转时增加动画是很常见的需求,我花了些时间整理了一下,包括使用传统补间动画以及转场动画(API>=21)的方式实现 。希望对大家有用

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.