use of com.nightonke.wowoviewpager.WoWoRotationAnimation 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);
}
use of com.nightonke.wowoviewpager.WoWoRotationAnimation 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);
}
use of com.nightonke.wowoviewpager.WoWoRotationAnimation in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method setWoWoAnimation.
private void setWoWoAnimation() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.wowo));
animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 0, -20, findViewById(R.id.wowo).getPivotY(), 0, 0, -15, EaseType.EaseInBack, false));
animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 1, -20, findViewById(R.id.wowo).getPivotY(), 0, 0, -150, EaseType.EaseInBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.wowo).getTranslationX(), findViewById(R.id.wowo).getTranslationY(), -screenW / 3, findViewById(R.id.wowo).getTranslationY(), EaseType.EaseInBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoRotationAnimation in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method setSun.
private void setSun() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.sun));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 0, screenW, -screenW, 0, 0, EaseType.Linear, true));
animation.addPageAnimaition(new WoWoTranslationAnimation(2, 0, 1, screenW, -screenW, -screenW, screenW, EaseType.Linear, true));
animation.addPageAnimaition(new WoWoRotationAnimation(2, 0, 1, findViewById(R.id.sun).getPivotX(), findViewById(R.id.sun).getPivotY(), 0, 0, 360 * 4, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoRotationAnimation in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method setViewPagerAnimation.
private void setViewPagerAnimation() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.viewpager));
animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 0, -20, findViewById(R.id.viewpager).getPivotY(), 0, 0, 15, EaseType.EaseInBack, false));
animation.addPageAnimaition(new WoWoRotationAnimation(0, 0, 1, -20, findViewById(R.id.viewpager).getPivotY(), 0, 0, 150, EaseType.EaseInBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.viewpager).getTranslationX(), findViewById(R.id.viewpager).getTranslationY(), -screenW / 3, findViewById(R.id.viewpager).getTranslationY(), EaseType.EaseInBack, false));
wowo.addAnimation(animation);
}
Aggregations