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