use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setUniversityIcon.
private void setUniversityIcon() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.university_icon));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.university_icon).getTranslationX(), findViewById(R.id.university_icon).getTranslationY(), -screenW, 0, EaseType.EaseInCubic, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setCoCoinMore.
private void setCoCoinMore() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.cocoin_more));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0.2f, 1, screenW, findViewById(R.id.cocoin_more).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.cocoin_more).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setBlogAndGithub.
private void setBlogAndGithub() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.blog_and_github));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.blog_and_github).getTranslationX(), screenH, 0, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, findViewById(R.id.blog_and_github).getTranslationX(), screenH, 0, -screenH, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation 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.WoWoTranslationAnimation 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);
}
Aggregations