عکس ali-sardari
Animation utility for androidJava
موضوع‌ها
۰
فورک‌ها
۱
ستاره‌ها
۱۲
تاریخ ایجاد
۶ شهریور ۱۳۹۷
آخرین بروزرسانی
نزدیک ۴ سال قبل

AnimUtils

Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
        repositories {
            ...
            maven { url "https://jitpack.io" }
        }
    }

Step 2. Add the dependency

dependencies {
    implementation 'com.github.ali-sardari:AnimUtils:1.0.1'
}

Then in your Java Code, you use it like below.

AnimUtils.with(Techniques.Shake)
        .delay(100)
        .duration(500).onEnd(new AnimUtils.AnimatorCallback() {
    @Override
    public void call(Animator animator) {
        Toast.makeText(MainActivity.this, "Finished!", Toast.LENGTH_LONG).show();
    }
}).playOn(txt_Text);

Effects

Attension

Flash, Pulse, RubberBand, Shake, Swing, Wobble, Bounce, Tada, StandUp, Wave

Special

Hinge, RollIn, RollOut,Landing,TakingOff,DropOut

Bounce

BounceIn, BounceInDown, BounceInLeft, BounceInRight, BounceInUp

Fade

FadeIn, FadeInUp, FadeInDown, FadeInLeft, FadeInRight FadeOut, FadeOutDown, FadeOutLeft, FadeOutRight, FadeOutUp

Flip

FlipInX, FlipOutX, FlipOutY

Rotate

RotateIn, RotateInDownLeft, RotateInDownRight, RotateInUpLeft, RotateInUpRight RotateOut, RotateOutDownLeft, RotateOutDownRight, RotateOutUpLeft, RotateOutUpRight

Slide

SlideInLeft, SlideInRight, SlideInUp, SlideInDown SlideOutLeft, SlideOutRight, SlideOutUp, SlideOutDown

Zoom

ZoomIn, ZoomInDown, ZoomInLeft, ZoomInRight, ZoomInUp ZoomOut, ZoomOutDown, ZoomOutLeft, ZoomOutRight, ZoomOutUp

Reference: https://github.com/daimajia/AndroidViewAnimations

(mailto:ali-sardari@live.com)