use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method setNightonkeAnimation.
private void setNightonkeAnimation() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.nightonke));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.nightonke).getTranslationX(), findViewById(R.id.nightonke).getTranslationY(), -screenW, findViewById(R.id.nightonke).getTranslationY(), EaseType.EaseInBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation 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.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setLeeCoMore.
private void setLeeCoMore() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.leeco_more));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0.2f, 1, screenW, findViewById(R.id.leeco_more).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.leeco_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 setProjects.
private void setProjects() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.projects));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, screenW, findViewById(R.id.projects).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.projects).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setMailIcon.
private void setMailIcon() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.mail_icon));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1, findViewById(R.id.mail_icon).getTranslationX(), findViewById(R.id.mail_icon).getTranslationY(), -screenW, 0, EaseType.EaseInCubic, false));
wowo.addAnimation(animation);
}
Aggregations