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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations