Search in sources :

Example 6 with WoWoTranslationAnimation

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

the class CVExampleActivity method setForAndroidDeveloper.

private void setForAndroidDeveloper() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.for_android_developer));
    animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 0, screenW + 80, findViewById(R.id.for_android_developer).getPivotY(), 0, 0, 10, EaseType.EaseInBack, false));
    animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 1, screenW + 80, findViewById(R.id.for_android_developer).getPivotY(), 0, 0, 150, EaseType.EaseInBack, false));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.for_android_developer).getTranslationX(), findViewById(R.id.for_android_developer).getTranslationY(), -screenW / 3, findViewById(R.id.for_android_developer).getTranslationY(), EaseType.EaseInBack, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoRotationAnimation(com.nightonke.wowoviewpager.WoWoRotationAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 7 with WoWoTranslationAnimation

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

the class CVExampleActivity method setCV.

private void setCV() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.cv));
    animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 0, -20, findViewById(R.id.cv).getPivotY(), 0, 0, -15, EaseType.EaseInBack, false));
    animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 1, -20, findViewById(R.id.cv).getPivotY(), 0, 0, -150, EaseType.EaseInBack, false));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.cv).getTranslationX(), findViewById(R.id.cv).getTranslationY(), -screenW / 3, findViewById(R.id.cv).getTranslationY(), EaseType.EaseInBack, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoRotationAnimation(com.nightonke.wowoviewpager.WoWoRotationAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 8 with WoWoTranslationAnimation

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

the class CVExampleActivity method setUniversityText.

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

Example 9 with WoWoTranslationAnimation

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

the class AppIntroExampleActivity method setOrangeStickAnimation.

private void setOrangeStickAnimation() {
    ImageView orangeStick = (ImageView) findViewById(R.id.orange_stick);
    ViewGroup.LayoutParams layoutParams = orangeStick.getLayoutParams();
    layoutParams.height = screenH * 7 / 10;
    layoutParams.width = layoutParams.height * 234 / 866;
    orangeStick.setLayoutParams(layoutParams);
    ViewAnimation animation = new ViewAnimation(orangeStick);
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.orange_stick).getTranslationX(), findViewById(R.id.orange_stick).getTranslationY(), -screenW, orangeStick.getTranslationY(), EaseType.Linear, false));
    wowo.addAnimation(animation);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) ViewGroup(android.view.ViewGroup) ImageView(android.widget.ImageView) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 10 with WoWoTranslationAnimation

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

the class AppIntroExampleActivity method setBigCloud.

private void setBigCloud() {
    ViewAnimation animation = new ViewAnimation(findViewById(R.id.big_cloud));
    animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 0, 0, -screenH / 2, 0, 0, EaseType.EaseOutBack, true));
    animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, -screenH / 2, 0, screenH / 2, EaseType.EaseOutBack, true));
    animation.addPageAnimaition(new WoWoTranslationAnimation(2, 0, 1, 0, 0, -screenW, 0, EaseType.EaseInBack, 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