Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andkulikov/Transitions-Everywhere
Set of extra Transitions on top of Jetpack Transitions Library
https://github.com/andkulikov/Transitions-Everywhere
Last synced: 20 days ago
JSON representation
Set of extra Transitions on top of Jetpack Transitions Library
- Host: GitHub
- URL: https://github.com/andkulikov/Transitions-Everywhere
- Owner: andkulikov
- License: apache-2.0
- Created: 2014-10-15T03:37:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T09:39:05.000Z (over 4 years ago)
- Last Synced: 2024-05-03T16:59:03.473Z (6 months ago)
- Language: Java
- Homepage:
- Size: 1.19 MB
- Stars: 4,830
- Watchers: 141
- Forks: 489
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Transitions Everywhere
============
Set of extra Transitions on top of [AndroidX Transitions Library][1].About
============
[Article about transitions and library][2]
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:
1) Internal Transitions that was marked as @hide in the platform: Recolor, Rotate, ChangeText and Crossfade.
2) Two extra transitions: Scale and Translation.Quick start
============This version should be used if you are specifying 29 (Q) as a `targetSdkVersion`:
```groovy
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:
```groovy
dependencies {
implementation "com.andkulikov:transitionseverywhere:2.0.0"
}
```
This version is based on androidx.transition:transition:1.1.0.Migration from 1.x guide
============
1) Migrate to AndroidX! Support libraries are not updating anymore, to get all the bug fixes you have to use AndroidX transitions.
2) Replace imports from com.transitionseverywhere. to androidx.transition. for all the classes which are a part of the AndroidX lib.
3) If you were using Transition.TransitionListenerAdapter class use TransitionListenerAdapter now.
4) Instead of TransitionManager.setTransitionName() use ViewCompat.setTransitionName().
5) If you were inflating transitions via xml move your files from anim folder to transition and use android: namespace instead of app:
6) 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.
7) Instead of TranslationTransition use Translation.Articles about the version 1.x
============
[Article about transitions and library][2]
[Russian version][3]
Chinese: [version 1][5], [version 2][6][Changelog for version 1.x][4]
============[1]: https://developer.android.com/reference/androidx/transition/package-summary
[2]: https://medium.com/@andkulikov/animate-all-the-things-transitions-in-android-914af5477d50
[3]: http://habrahabr.ru/post/243363/
[4]: https://github.com/andkulikov/Transitions-Everywhere/blob/master/library(1.x)/CHANGELOG.md
[5]: https://yanlu.me/animate-all-the-things-transitions-in-android/
[6]: http://www.jianshu.com/p/98f2ec280945
[7]: https://medium.com/@andkulikov/support-library-for-transitions-overview-and-comparison-c41be713cf8c