use of com.nightonke.wowoviewpager.ViewAnimation 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);
}
use of com.nightonke.wowoviewpager.ViewAnimation 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);
}
use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setLogo.
private void setLogo() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.cv_logo));
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 WoWoScaleAnimation(0, 0, 1, 0.5f, 0.5f, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setBase.
private void setBase() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.base));
animation.addPageAnimaition(new WoWoBackgroundColorAnimation(0, 0, 1, ContextCompat.getColor(this, R.color.light_blue), ContextCompat.getColor(this, R.color.my_pink), ColorChangeType.RGB, EaseType.Linear, true));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setName.
private void setName() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.name));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.name).getTranslationX(), findViewById(R.id.name).getTranslationY(), -screenW / 2 + 150 + WoWoUtil.dp2px(105, this) + 20, -screenH / 2 + 200 - WoWoUtil.dp2px(70, this), EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTextViewSizeAnimation(0, 0, 1, 30f, 22f, EaseType.Linear, false));
wowo.addAnimation(animation);
}
Aggregations