Search in sources :

Example 6 with ViewAnimation

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

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

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

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

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