Different animation
GauravCreed opened this issue · comments
Hi @alaeri
is there any way to change animation on aniamtion complete and also change image with time duration?
Thanks (_)
Hello @GauravCreed,
not sure why you pinged me, I haven't used the lib in a long time.
- To change the image, you have many setters available: setImageDrawable, setImageUri....
- To change the animation duration, you should build your own TransitionGenerator, You should check the code of the RandomTransitionGenerator. It should be fairly straightforward.
- To be notified when a transition ends: setTransitionListener should work.
Have a great day!
Hi.
i am using like this. is there any problem with this.
kbv.setImageResource(Utils.getRandom(Utils.images));
RandomTransitionGenerator generator = new RandomTransitionGenerator();
kbv.setTransitionGenerator(generator);
and in this what value of interpolator?
RandomTransitionGenerator generator = new RandomTransitionGenerator(duration, interpolator);
Thanks. (_)
any one can help me?
Thanks. (_)
Hi @GauravCreed,
The transitions are generated randomly. If you want to determine exactly how transitions should behave, you should follow these hints.