Bored with same animation for activity, Fragment, ViewPager and Viewpager2 transition? DDAnimatoo is a lightweight and easy to use Android library that provides many activity, Fragment, ViewPager and Viewpager2 transition animations.
- min SDK 16 (Android Jellybean 4.1)
- written in Java
A lightweight, easy-to-use Android library that provides awesome activity, Fragment, ViewPager and Viewpager2 transition animations
Add the dependency to your module build.gradle:
dependencies {
implementation 'in.dd4you.animatoo:anim:1.0.0'
}
- in and out.
- swipe left.
- swipe right.
- split.
- shrink.
- card.
- zoom.
- fade.
- spin.
- diagonal.
- windmill.
- slide up.
- slide down.
- slide left.
- slide right.
- Background To Foreground.
- Cube In.
- Cube Out.
- Depth Page.
- Flip Horizontal.
- Flip Vertical.
- Foreground To Background.
- Rotate Down.
- Rotate Up.
- Tablet Page.
- Zoom In.
- Zoom Out.
Using DDAnimatoo is extremely simple, A single short line of code following startActivity(...) is all that's needed, for example:
startActivity(new Intent(context, TargetActivity.class));
Animatoo.animateZoom(context); //fire the zoom animation
Another example, this time firing the animation when the back button is pressed:
@Override
public void onBackPressed(){
super.onBackPressed();
Animatoo.animateSlideLeft(context); //fire the slide left animation
}
Using DDAnimatoo is extremely simple, A single short line of code following FragmentTransaction(...) is all that's needed, for example:
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
FrAnimatoo.animateZoom(fragmentTransaction); //fire the zoom animation
fragmentTransaction.replace(frameLayout.getId(), new FragmentName());
fragmentTransaction.commit();
Using DDAnimatoo is extremely simple, A single short line of code, for example:
viewPager.setPageTransformer(new VpAnimatoo.BackgroundToForeground())
Using DDAnimatoo is extremely simple, A single short line of code, for example:
viewPager2.setPageTransformer(new Vp2Animatoo.BackgroundToForeground())
Animatoo.animateZoom(context);
Animatoo.animateFade(context);
Animatoo.animateWindmill(context);
Animatoo.animateSpin(context);
Animatoo.animateDiagonal(context);
Animatoo.animateSplit(context);
Animatoo.animateShrink(context);
Animatoo.animateCard(context);
Animatoo.animateInAndOut(context);
Animatoo.animateSwipeLeft(context);
Animatoo.animateSwipeRight(context);
Animatoo.animateSlideLeft(context);
Animatoo.animateSlideRight(context);
Animatoo.animateSlideDown(context);
Animatoo.animateSlideUp(context);
FrAnimatoo.animateZoom(fragmentTransaction);
FrAnimatoo.animateFade(fragmentTransaction);
FrAnimatoo.animateWindmill(fragmentTransaction);
FrAnimatoo.animateSpin(fragmentTransaction);
FrAnimatoo.animateDiagonal(fragmentTransaction);
FrAnimatoo.animateSplit(fragmentTransaction);
FrAnimatoo.animateShrink(fragmentTransaction);
FrAnimatoo.animateCard(fragmentTransaction);
FrAnimatoo.animateInAndOut(fragmentTransaction);
FrAnimatoo.animateSwipeLeft(fragmentTransaction);
FrAnimatoo.animateSwipeRight(fragmentTransaction);
FrAnimatoo.animateSlideLeft(fragmentTransaction);
FrAnimatoo.animateSlideRight(fragmentTransaction);
FrAnimatoo.animateSlideDown(fragmentTransaction);
FrAnimatoo.animateSlideUp(fragmentTransaction);
new VpAnimatoo.BackgroundToForeground()
new VpAnimatoo.CubeIn()
new VpAnimatoo.CubeOut()
new VpAnimatoo.DepthPage()
new VpAnimatoo.FlipHorizontal()
new VpAnimatoo.FlipVertical()
new VpAnimatoo.ForegroundToBackground()
new VpAnimatoo.RotateDown()
new VpAnimatoo.RotateUp()
new VpAnimatoo.TabletPage()
new VpAnimatoo.ZoomIn()
new VpAnimatoo.ZoomOut()
new Vp2Animatoo.BackgroundToForeground()
new Vp2Animatoo.CubeIn()
new Vp2Animatoo.CubeOut()
new Vp2Animatoo.DepthPage()
new Vp2Animatoo.FlipHorizontal()
new Vp2Animatoo.FlipVertical()
new Vp2Animatoo.ForegroundToBackground()
new Vp2Animatoo.RotateDown()
new Vp2Animatoo.RotateUp()
new Vp2Animatoo.TabletPage()
new Vp2Animatoo.ZoomIn()
new Vp2Animatoo.ZoomOut()
Please fork repository and contribute using pull requests.
Any contributions, large or small, major features, bug fixes, additional language translations, unit/integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.
Copyright 2020 DD4You.in
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.