Search in sources :

Example 26 with WoWoTranslationAnimation

use of com.nightonke.wowoviewpager.WoWoTranslationAnimation 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 27 with WoWoTranslationAnimation

use of com.nightonke.wowoviewpager.WoWoTranslationAnimation 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 28 with WoWoTranslationAnimation

use of com.nightonke.wowoviewpager.WoWoTranslationAnimation 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)

Example 29 with WoWoTranslationAnimation

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

the class CVExampleActivity method setCircle.

private void setCircle() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.circle));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.cv_logo).getTranslationX(), findViewById(R.id.cv_logo).getTranslationY(), -screenW / 2 + 150, -screenH / 2 + 200, EaseType.EaseOutBack, false));
    animation.addPageAnimaition(new WoWoShapeColorAnimation(1, 0, 1, ContextCompat.getColor(this, R.color.my_pink), ContextCompat.getColor(this, R.color.light_blue), ColorChangeType.RGB, EaseType.Linear, true));
    animation.addPageAnimaition(new WoWoScaleAnimation(1, 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) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 30 with WoWoTranslationAnimation

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

the class CVExampleActivity method setMailText.

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

Aggregations

ViewAnimation (com.nightonke.wowoviewpager.ViewAnimation)33 WoWoTranslationAnimation (com.nightonke.wowoviewpager.WoWoTranslationAnimation)33 ViewGroup (android.view.ViewGroup)5 WoWoRotationAnimation (com.nightonke.wowoviewpager.WoWoRotationAnimation)5 ImageView (android.widget.ImageView)4 WoWoScaleAnimation (com.nightonke.wowoviewpager.WoWoScaleAnimation)2 Path (android.graphics.Path)1 WoWoAlphaAnimation (com.nightonke.wowoviewpager.WoWoAlphaAnimation)1 WoWoPathAnimation (com.nightonke.wowoviewpager.WoWoPathAnimation)1 WoWoPathView (com.nightonke.wowoviewpager.WoWoPathView)1 WoWoShapeColorAnimation (com.nightonke.wowoviewpager.WoWoShapeColorAnimation)1 WoWoTextViewSizeAnimation (com.nightonke.wowoviewpager.WoWoTextViewSizeAnimation)1 WoWoViewPagerAdapter (com.nightonke.wowoviewpager.WoWoViewPagerAdapter)1