use of com.nightonke.wowoviewpager.ViewAnimation in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method setCircleAnimation.
private void setCircleAnimation() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.circle));
animation.addPageAnimaition(new WoWoShapeColorAnimation(0, 0, 1, ContextCompat.getColor(this, R.color.gray), ContextCompat.getColor(this, R.color.light_blue), ColorChangeType.RGB, EaseType.Linear, true));
animation.addPageAnimaition(new WoWoScaleAnimation(0, 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 AppIntroExampleActivity method setOptimized.
private void setOptimized() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.optimized));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 0, screenW, 0, 0, 0, EaseType.Linear, true));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, screenW, 0, -screenW, 0, EaseType.Linear, true));
animation.addPageAnimaition(new WoWoTranslationAnimation(2, 0, 1, 0, 0, -screenW, 0, EaseType.Linear, true));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.ViewAnimation 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.ViewAnimation 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.ViewAnimation 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);
}
Aggregations