Search in sources :

Example 31 with ViewAnimation

use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.

the class AppIntroExampleActivity method setCircleAnimation.

private void setCircleAnimation() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.circle));
    animation.addPageAnimaition(new WoWoShapeColorAnimation(0, 0, 1, ContextCompat.getColor(this, R.color.gray), ContextCompat.getColor(this, R.color.light_blue), ColorChangeType.RGB, EaseType.Linear, true));
    animation.addPageAnimaition(new WoWoScaleAnimation(0, 0, 1, circleR * 2 / findViewById(R.id.circle).getWidth(), circleR * 2 / findViewById(R.id.circle).getHeight(), EaseType.EaseInBack, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoShapeColorAnimation(com.nightonke.wowoviewpager.WoWoShapeColorAnimation) WoWoScaleAnimation(com.nightonke.wowoviewpager.WoWoScaleAnimation)

Example 32 with ViewAnimation

use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.

the class AppIntroExampleActivity method setOptimized.

private void setOptimized() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.optimized));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 0, screenW, 0, 0, 0, EaseType.Linear, true));
    animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, screenW, 0, -screenW, 0, EaseType.Linear, true));
    animation.addPageAnimaition(new WoWoTranslationAnimation(2, 0, 1, 0, 0, -screenW, 0, EaseType.Linear, true));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 33 with ViewAnimation

use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.

the class CVExampleActivity method setUniversityIcon.

private void setUniversityIcon() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.university_icon));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.university_icon).getTranslationX(), findViewById(R.id.university_icon).getTranslationY(), -screenW, 0, EaseType.EaseInCubic, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 34 with ViewAnimation

use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.

the class CVExampleActivity method setCoCoinMore.

private void setCoCoinMore() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.cocoin_more));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0.2f, 1, screenW, findViewById(R.id.cocoin_more).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
    animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.cocoin_more).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 35 with ViewAnimation

use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.

the class CVExampleActivity method setBlogAndGithub.

private void setBlogAndGithub() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.blog_and_github));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.blog_and_github).getTranslationX(), screenH, 0, 0, EaseType.EaseOutBack, false));
    animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, findViewById(R.id.blog_and_github).getTranslationX(), screenH, 0, -screenH, EaseType.EaseOutBack, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Aggregations

ViewAnimation (com.nightonke.wowoviewpager.ViewAnimation)46 WoWoTranslationAnimation (com.nightonke.wowoviewpager.WoWoTranslationAnimation)33 ViewGroup (android.view.ViewGroup)7 WoWoRotationAnimation (com.nightonke.wowoviewpager.WoWoRotationAnimation)6 ImageView (android.widget.ImageView)4 WoWoScaleAnimation (com.nightonke.wowoviewpager.WoWoScaleAnimation)4 WoWoViewPagerAdapter (com.nightonke.wowoviewpager.WoWoViewPagerAdapter)4 Path (android.graphics.Path)3 WoWoPathAnimation (com.nightonke.wowoviewpager.WoWoPathAnimation)3 WoWoPathView (com.nightonke.wowoviewpager.WoWoPathView)3 WoWoShapeColorAnimation (com.nightonke.wowoviewpager.WoWoShapeColorAnimation)3 WoWoAlphaAnimation (com.nightonke.wowoviewpager.WoWoAlphaAnimation)2 WoWoBackgroundColorAnimation (com.nightonke.wowoviewpager.WoWoBackgroundColorAnimation)2 WoWoTextViewSizeAnimation (com.nightonke.wowoviewpager.WoWoTextViewSizeAnimation)2 WoWoLayerListColorAnimation (com.nightonke.wowoviewpager.WoWoLayerListColorAnimation)1 WoWoStateListColorAnimation (com.nightonke.wowoviewpager.WoWoStateListColorAnimation)1 WoWoTextViewColorAnimation (com.nightonke.wowoviewpager.WoWoTextViewColorAnimation)1