use of com.nightonke.wowoviewpager.WoWoStateListColorAnimation in project WoWoViewPager by Nightonke.
the class WoWoStateListColorAnimationActivity method setAnimation.
private void setAnimation(View view, ColorChangeType colorChangeType) {
ViewAnimation animation = new ViewAnimation(view);
animation.addPageAnimaition(new WoWoStateListColorAnimation(0, 0f, 1f, new int[] { Color.parseColor("#ff0000"), Color.parseColor("#ff0000"), Color.parseColor("#ff0000") }, new int[] { Color.parseColor("#00ff00"), Color.parseColor("#00ff00"), Color.parseColor("#00ff00") }, colorChangeType, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoStateListColorAnimation(1, 0f, 1f, new int[] { Color.parseColor("#00ff00"), Color.parseColor("#00ff00"), Color.parseColor("#00ff00") }, new int[] { Color.parseColor("#0000ff"), Color.parseColor("#0000ff"), Color.parseColor("#0000ff") }, colorChangeType, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoStateListColorAnimation(2, 0f, 1f, new int[] { Color.parseColor("#0000ff"), Color.parseColor("#0000ff"), Color.parseColor("#0000ff") }, new int[] { Color.parseColor("#ff0000"), Color.parseColor("#ff0000"), Color.parseColor("#ff0000") }, colorChangeType, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoStateListColorAnimation(3, 0f, 1f, new int[] { Color.parseColor("#ff0000"), Color.parseColor("#ff0000"), Color.parseColor("#ff0000") }, new int[] { Color.parseColor("#000000"), Color.parseColor("#000000"), Color.parseColor("#000000") }, colorChangeType, easeType, useSameEaseTypeBack));
wowo.addAnimation(animation);
}
Aggregations