use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method setPath.
private void setPath() {
WoWoPathView pathView = (WoWoPathView) findViewById(R.id.pathview);
ViewGroup.LayoutParams layoutParams = pathView.getLayoutParams();
layoutParams.height = screenH;
layoutParams.width = screenW + 200;
pathView.setLayoutParams(layoutParams);
int xoff = -300;
int yoff = screenH - 616 - 300;
float xScale = 1.5f;
float yScale = 1;
Path path = new Path();
path.moveTo(xScale * (565 + xoff), screenH + yoff);
path.cubicTo(xScale * (509 + xoff), yScale * (385 + yoff), xScale * (144 + xoff), yScale * (272 + yoff), xScale * (394 + xoff), yScale * (144 + yoff));
path.cubicTo(xScale * (477 + xoff), yScale * (99 + yoff), xScale * (596 + xoff), yScale * (91 + yoff), xScale * (697 + xoff), yScale * (128 + yoff));
path.cubicTo(xScale * (850 + xoff), yScale * (189 + yoff), xScale * (803 + xoff), yScale * (324 + yoff), xScale * (66 + xoff), yScale * (307 + yoff));
pathView.setPath(path);
ViewAnimation animation = new ViewAnimation(pathView);
animation.addPageAnimaition(new WoWoPathAnimation(1, 0f, 1f, EaseType.Linear, true));
animation.addPageAnimaition(new WoWoAlphaAnimation(2, 0, 1, 1, 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.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setBraeco.
private void setBraeco() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.braeco));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1f, screenW, findViewById(R.id.braeco).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.braeco).getTranslationY(), screenW, 0, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setBraecoMore.
private void setBraecoMore() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.braeco_more));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0.2f, 1, screenW, findViewById(R.id.braeco_more).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.braeco_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 setLeeCo.
private void setLeeCo() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.leeco));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1f, screenW, findViewById(R.id.leeco).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.leeco).getTranslationY(), screenW, 0, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoTranslationAnimation in project WoWoViewPager by Nightonke.
the class CVExampleActivity method setCoCoin.
private void setCoCoin() {
ViewAnimation animation = new ViewAnimation(findViewById(R.id.cocoin));
animation.addPageAnimaition(new WoWoTranslationAnimation(0, 0, 1f, screenW, findViewById(R.id.cocoin).getTranslationY(), -screenW, 0, EaseType.EaseOutBack, false));
animation.addPageAnimaition(new WoWoTranslationAnimation(1, 0, 1, 0, findViewById(R.id.cocoin).getTranslationY(), screenW, 0, EaseType.EaseOutBack, false));
wowo.addAnimation(animation);
}
Aggregations