Search in sources :

Example 36 with ViewAnimation

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);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoShapeColorAnimation(com.nightonke.wowoviewpager.WoWoShapeColorAnimation) WoWoScaleAnimation(com.nightonke.wowoviewpager.WoWoScaleAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 37 with ViewAnimation

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);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 38 with ViewAnimation

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);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoScaleAnimation(com.nightonke.wowoviewpager.WoWoScaleAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Example 39 with ViewAnimation

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);
}
Also used : WoWoBackgroundColorAnimation(com.nightonke.wowoviewpager.WoWoBackgroundColorAnimation) ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation)

Example 40 with ViewAnimation

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);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoTextViewSizeAnimation(com.nightonke.wowoviewpager.WoWoTextViewSizeAnimation) WoWoTranslationAnimation(com.nightonke.wowoviewpager.WoWoTranslationAnimation)

Aggregations

ViewAnimation (com.nightonke.wowoviewpager.ViewAnimation)46 WoWoTranslationAnimation (com.nightonke.wowoviewpager.WoWoTranslationAnimation)33 ViewGroup (android.view.ViewGroup)7 WoWoRotationAnimation (com.nightonke.wowoviewpager.WoWoRotationAnimation)6 ImageView (android.widget.ImageView)4 WoWoScaleAnimation (com.nightonke.wowoviewpager.WoWoScaleAnimation)4 WoWoViewPagerAdapter (com.nightonke.wowoviewpager.WoWoViewPagerAdapter)4 Path (android.graphics.Path)3 WoWoPathAnimation (com.nightonke.wowoviewpager.WoWoPathAnimation)3 WoWoPathView (com.nightonke.wowoviewpager.WoWoPathView)3 WoWoShapeColorAnimation (com.nightonke.wowoviewpager.WoWoShapeColorAnimation)3 WoWoAlphaAnimation (com.nightonke.wowoviewpager.WoWoAlphaAnimation)2 WoWoBackgroundColorAnimation (com.nightonke.wowoviewpager.WoWoBackgroundColorAnimation)2 WoWoTextViewSizeAnimation (com.nightonke.wowoviewpager.WoWoTextViewSizeAnimation)2 WoWoLayerListColorAnimation (com.nightonke.wowoviewpager.WoWoLayerListColorAnimation)1 WoWoStateListColorAnimation (com.nightonke.wowoviewpager.WoWoStateListColorAnimation)1 WoWoTextViewColorAnimation (com.nightonke.wowoviewpager.WoWoTextViewColorAnimation)1