andkulikov/Transitions-Everywhere
关于
基于 Jetpack Transitions Library 提供的一组额外 Transition
开发工具实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -2
- 1个月
- -6
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Transitions Everywhere
Set of extra Transitions on top of AndroidX Transitions Library.
About
Article about transitions and library
Originally this library was a full backport of Android Platform's Transitions API.
Then all the bug fixes from the library were ported into AndroidX Transitions (previously Support library).
Now this lib has minSdk version 14 (Android 4.0 ICS) and consist of some transitions which are not a part of the official set:
- Internal Transitions that was marked as @hide in the platform: Recolor, Rotate, ChangeText and Crossfade.
- Two extra transitions: Scale and Translation.
Quick start
This version should be used if you are specifying 29 (Q) as a targetSdkVersion:
dependencies {
implementation "com.andkulikov:transitionseverywhere:2.1.0"
}
Otherwise, if you specify 29 as targetSdkVersion some of the transitions will not work properly. Instead of the reflection calls this version uses the new public methods added in API Level 29. It is based on androidx.transition:transition:1.2.0.
Previous version if you are not yet on 29 (Q) SDK:
dependencies {
implementation "com.andkulikov:transitionseverywhere:2.0.0"
}
This version is based on androidx.transition:transition:1.1.0.
Migration from 1.x guide
- Migrate to AndroidX! Support libraries are not updating anymore, to get all the bug fixes you have to use AndroidX transitions.
- Replace imports from com.transitionseverywhere. to androidx.transition. for all the classes which are a part of the AndroidX lib.
- If you were using Transition.TransitionListenerAdapter class use TransitionListenerAdapter now.
- Instead of TransitionManager.setTransitionName() use ViewCompat.setTransitionName().
- If you were inflating transitions via xml move your files from anim folder to transition and use android: namespace instead of app:
- Some setters in AndroidX transitions are not following the builder pattern, please rewrite this usages with introducing a helper variable if you encounter the issue.
- Instead of TranslationTransition use Translation.
Articles about the version 1.x
Article about transitions and library
Russian version
Chinese: version 1, version 2
Changelog for version 1.x
探索相关项目
加载中…