Android-Transition alternatives and similar packages
Based on the "Animations" category.
Alternatively, view Android-Transition alternatives based on common mentions on social networks and blogs.
-
Lottie for Android, iOS, and React Native
Render After Effects animations natively on Android and iOS, Web, and React Native -
AndroidViewAnimations
Cute view animation collection. -
Material-Animations
Android Transition animations explanation with examples. -
UltimateAndroidReference
:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer -
ListViewAnimations
An Android library which allows developers to easily add animations to ListView items -
AndroidImageSlider
An amazing and convenient Android image slider. -
NineOldAndroids
Android library for using the Honeycomb animation API on all versions of the platform back to 1.0! -
Rebound
A Java library that models spring dynamics and adds real world physics to your app. -
shimmer-android
An easy, flexible way to add a shimmering effect to any view in an Android app. -
transitions-everywhere
Set of extra Transitions on top of Jetpack Transitions Library -
android-flip
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android -
CircleIndicator
A lightweight indicator like in nexus 5 launcher -
PhotoEditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories. -
ChatKit for Android
Android library. Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management. Made by Stfalcon -
Music Player
From UI Proposal to Code :notes::arrow_forward: -
RecyclerViewItemAnimators
An Android library which provides simple Item animations to RecyclerView items -
Spotlight
Android Library that lights items for tutorials or walk-throughs etc... -
animate
An application demoing meaningful motion on Android -
ViewPagerTransforms
Library containing common animations needed for transforming ViewPager scrolling for Android v13+. -
AnimationEasingFunctions
Android Animation Easing Functions. Let's make animation more real! -
android-ripple-background
A beautiful ripple animation for your app -
Slidr
Easily add slide to dismiss functionality to an Activity -
FabulousFilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa -
CircularReveal
Lollipop ViewAnimationUtils.createCircularReveal for everyone 4.0+ -
ShimmerLayout
DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge. -
Rich Path Animator
💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can. -
BaseAnimation
BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app! -
Stfalcon ImageViewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures -
EasyAndroidAnimations
Easy Android Animations is an animation library that aims to make android animations easier, with 50+ builtin animations, it allows you to introduce many complex animation effects in your application with one or two lines of code. -
Backboard
A motion-driven animation framework for Android. -
SpeedView
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap: -
PreLollipopTransition
Simple tool which help you to implement activity and fragment transition for pre-Lollipop devices. -
ColorPickerView
🎨 Android colorpicker for getting colors from any images by tapping on the desired color. -
EasyFlipView
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc. -
TransitionPlayer
Android library to control Transition animates. A simple way to create a interactive animation. -
ArcAnimator
ArcAnimator helps to create arc transition animation: 2.3.+ -
WhatTodo
A Simple Todo app design in Flutter to keep track of your task on daily basis. Its build on BLoC Pattern. You can add a project, labels, and due-date to your task also you can sort your task on the basis of project, label, and dates -
FragmentAnimations
3D animation examples for support-v4 Fragment transition. -
Road Runner
Road Runner is a library for android which allow you to make your own loading animation using a SVG image -
EasingInterpolator
Thirty-one different easing animation interpolators for Android. -
TreeView
Android GraphView is used to display data in graph structures. -
Youtube UI/UX Animation
With MVVM Architecture pattern using Android Architecture Components This is a sample app demonstrating Youtube player animation using constraint layout -
AppIntroAnimation
AppIntroAnimation is a set of code snippets to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use and customize without adding third party library integrations. -
Dachshund Tab Layout
Extended Android Tab Layout with animated indicators that have continuous feedback. -
TextFieldBoxes
Material Design text field that comes in a box, based on (OLD) Google Material Design guidelines. -
fab-transformation
Support Floating Action Button transformation for Android
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Android-Transition or a related project?
README
android-transition
Android-Transition allows the easy creation of view transitions that reacts to user inputs. The library is designed to be general enough such that the same transition can be applied to differnt UI components like Drawer, SlidingUpPanel, ViewPager, ObservableScrollView (work in progress), etc., as long as appropriate adapter is used.
Changelog
0.9.5
- Add Animation.forceEndState()
- Add DefaultAnimationListener
- Add a bunch of delayed methods with varargs to ViewTransitionBuilder & MenuItemTransitionBuilder
- Add ColorTransition
- Add AutoReverseAnimationListener
- Reduce transient objects created by ViewTransitionBuilder
- Update dependent library versions: (com.github.ksoichiro:android-observablescrollview:1.5.1 --> 1.6.0, com.sothree.slidinguppanel:library:3.0.0 --> 3.2.1
0.9.4
Because somehow version 0.9.3 uploaded to Maven is broken :-/
0.9.3
- Many *TransitionBuilder methods now takes varargs
- Add visible()/invisible()/gone() to *TransitionBuilder that modifies target View's visibility
- Add ScaledTransitionHandler
- Improve Cascade
- Fix erroneously sharing some TransitionBuilder states when cloned
- Remove android:allowBackup from AndroidManifest.xml
- Minor optimizations
0.9.2
- Allow the transition/animation of a single MenuItem
- Add ViewTransitionBuilder.height(int) / ViewTransitionBuilder.delayHeight(int)
- AnimationManager/TransitionAnimation can specify either AnimationController or AnimatorController (Animator is needed to animate MenuItems but is, for some reason, slow for certain animations like View height manipulation)
- Reduce garbage generation and other optimizations
- Fix memory leak with MenuItem transition
- Fix incorrect state when reverse transiting a View with a range not between 0f and 1f
- Remove AnimationManager.removeAnimation(Animation) to support optimization, may add it back in the future
0.9.1
Fixed an embarrassing mistakenly-capitalized package name.
0.9.0
Please note that due to change in scope and direction, the code has been overhauled in 0.9.x and is incompatible with 0.8.x.
On the other hand now it only takes 8 lines of code to achieve the effect below that includes both non-interactive animation and interactive transition (drawer dragging):
On Android Studio update Gradle dependency to:
compile 'com.github.kaichunlin.transition:core:0.9.4'
To add the corresponding slidinguppanel module:
compile 'com.github.kaichunlin.transition:slidinguppanel:0.9.1'
0.8.3
Android Support Annotations are applied across the codebase which should help catching incorrect usage early. On Android Studio update Gradle dependency to:
compile 'com.github.kaichunlin.transition:core:0.8.3'
Note that while many annotations such as @NonNull and @Nullable work on SDK Build Tools 22.0.x, some annotations like @IntRange and @FlatRange only work when preview version (23.0.0 rc2) is used.
Download from Google Play
The app on Google Play may not be the latest version.
Features
- View and MenuItem Transition
view transition
MenuItem transition
- Integrated Transition & Animation
See Changelog for 0.9.0 above for an exmaple, and the "Usage" section below for sample code.
- Interpolator
It's very easy to apply standard Android Interpolator to the transition:
(AccelerateDecelerateInterpolator v.s. AnticipateInterpolator)
- Custom Adapters
- Drawer
- SlidingUpPanel
- ViewPager
- ObservableScrollView (work in progress)
- Write one yourself!
Integration
The simplest way to integrate Android-Transition is to grab them from Maven Central or jCenter. On Android Studio, add the code below to Gradle dependencies:
compile 'com.github.kaichunlin.transition:core:0.9.5'
Adapters that adapts to UI components not found in Android framework or Android Support Library are provided as their own libraries, the table below is the list of libraries:
Library | Function | Description in build.gradle |
---|---|---|
core | Provides core transition function and adapters | com.github.kaichunlin.transition:core:0.9.5 |
slidinguppanel | AndroidSlidingUpPanel Adapter | com.github.kaichunlin.transition:slidinguppanel:0.9.5 |
As an example, if an app requires the slidinguppanel module, which implicitly requires the core module, then build.gradle will look like below:
dependencies {
//other dependencies
...
compile 'com.github.kaichunlin.transition:slidinguppanel:0.9.5'
}
Usage
- Transition is the primary object used to specify the desired operation on a View. The primary way to create Transitions is through the use of ViewTransitionBuilder and MenuItemTransitionBuilder.
- These two classes provide fluent API with capability similar to ViewPropertyAnimator. Example:
//create a Transition for the View with ID R.id.big_icon that rotates it by 360 degrees, applies different scaling on the X & Y axes, move it on the x axis by 200 pixels.
Transition transition = ViewTransitionBuilder.transit(findViewById(R.id.big_icon)).rotation(0f, 360f).scaleX(1f, 0.2f).scaleY(1f, 0f).translationX(200f)).build();
- Once created, Transition can be added to any adapter, which will manage and initiate the Transition when the user is manipulating an interactive View such as DrawerLayout:
mDrawerListenerAdapter.addTransition(transition);
- ViewTransitionBuilder and MenuItemTransitionBuilder have the method buildAnimation() to create an Animation object:
Animation animation = ViewTransitionBuilder.transit(findViewById(R.id.big_icon)).rotation(0f, 360f).scaleX(1f, 0.2f).scaleY(1f, 0f).translationX(200f)).buildAnimation();
animation.startAnimation(300);
- The app/ folder is a sample app containing dozens of examples.
Two steps to apply transition to any View (sample code):
- Use the adapter corresponding to the ViewGroup type:
//uses DrawerListenerAdapter to handle DrawerLayout user interactions
DrawerListenerAdapter mDrawerListenerAdapter = new DrawerListenerAdapter(mDrawerToggle, R.id.drawerList);
mDrawerListenerAdapter.setDrawerLayout(mDrawerLayout);
- Add desired transition to the adapter, ViewTransitionBuilder is used to build the transition:
mDrawerListenerAdapter.addTransition(
ViewTransitionBuilder.transit(findViewById(R.id.big_icon)).rotation(0f, 360f).scaleX(1f, 0.2f).scaleY(1f, 0f).translationX(200f));
Three steps to apply transition to a MenuItem (sample code):
- Use the appropriate adapter that extends MenuBaseAdapter:
DrawerListenerAdapter mDrawerListenerAdapter = new DrawerListenerAdapter(mDrawerToggle, R.id.drawerList);
mDrawerListenerAdapter.setDrawerLayout(mDrawerLayout);
- Let the adapter manage the creation of options menu:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
mDrawerListenerAdapter.onCreateOptionsMenu(this, menu);
return super.onCreateOptionsMenu(menu);
}
- Add desired transition to the adapter, MenuItemTransitionBuilder is used to build the transition:
//shared configuration
MenuItemTransitionBuilder builder = MenuItemTransitionBuilder.transit(toolbar).alpha(1f, 0.5f).scale(1f, 0f).cascade(0.3f).visibleOnStartAnimation(true).invalidateOptionOnStopTransition(this, true);
// create a transition to be used when the drawer transits from the closed state to the opened state
// notice that in most situations clone() should be used, i.e. builder.clone(), to prevent builder picking up effects that should only apply to a single transition
MenuItemTransition mShrinkClose = builder.translationX(0, 30).build();
// create a reverse transition to be used when the drawer transits from the opened state to the closed state
MenuItemTransition mShrinkOpen = builder.reverse().translationX(0, 30).build();
//tells adapter the transition and the menu options for both the opened and closed states
mDrawerListenerAdapter.setupOptions(this, new MenuOptionConfiguration(mShrinkOpen, R.menu.drawer), new MenuOptionConfiguration(mShrinkClose, R.menu.main));
Animation
To apply both animation & transition:
This can be achieved with the code:
//Create an adapter that listens for ActionBarDrawerToggle state change and update transition states
DrawerListenerAdapter mDrawerListenerAdapter = new DrawerListenerAdapter(mDrawerToggle, R.id.drawerList);
mDrawerListenerAdapter.setDrawerLayout(mDrawerLayout);
//this builder is used to build both transition & animation effect
ViewTransitionBuilder mRotateEffectBuilder = ViewTransitionBuilder.transit(findViewById(R.id.big_icon)).rotation(0f, 360f).scaleX(1f, 0.2f).scaleY(1f, 0f).translationX(200f);
//build the desired transition and adds to the adapter
ViewTransition transition = mRotateEffectBuilder.build();
mDrawerListenerAdapter.addTransition(transition);
//since the start animation is the reverse of the transition, set the current view state to transition's final state
transition.setProgress(1f);
//init an animation and add a delay to prevent stutter, needs to be higher if animation is enabled
final IAnimation animation = mRotateEffectBuilder.reverse().buildAnimation();
animation.startAnimationDelayed(600, 32);
See source of DrawerViewActivity.java for example.
Misc
- To clear all transitions from an adapter:
mDrawerListenerAdapter.clearTransition();
- Share a common builder (sample code):
//calling adapter(mSlidingUpPanelLayoutAdapter) means that when builder.build() is called, the resultant transition will automatically be added to mSlidingUpPanelLayoutAdapter
ViewTransitionBuilder baseBuilder = ViewTransitionBuilder.transit().interpolator(mInterpolator).adapter(mSlidingUpPanelLayoutAdapter).rotationX(42f).scale(0.8f).translationYAsFractionOfHeight(-0.5f);
//calls clone() so any modification will not be propagated to other transitions build from the same builder
//adds a transition to view R.id.content_bg
baseBuilder.clone().target(findViewById(R.id.content_bg)).build();
//apply the same transition effect to a different view (R.id.content)
baseBuilder.clone().target(findViewById(R.id.content)).build();
- Delay transition evaluation until layout is complete, this is required if a view's position/dimension is used in the evaluation, in such a case ViewUtil provides a helper function (sample code):
ViewUtil.executeOnGlobalLayout(findViewById(R.id.rotate_slide), new ViewTreeObserver.OnGlobalLayoutListener() {
public void onGlobalLayout() {
//create ViewTransitionBuilder here
}
});