Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different animation #60

Open
GauravCreed opened this issue Oct 24, 2019 · 4 comments
Open

Different animation #60

GauravCreed opened this issue Oct 24, 2019 · 4 comments

Comments

@GauravCreed
Copy link

Hi @alaeri

is there any way to change animation on aniamtion complete and also change image with time duration?

Thanks (_)

@GauravCreed GauravCreed changed the title Different animatio Different animation Oct 24, 2019
@alaeri
Copy link
Contributor

alaeri commented Oct 24, 2019

Hello @GauravCreed,

not sure why you pinged me, I haven't used the lib in a long time.

  1. To change the image, you have many setters available: setImageDrawable, setImageUri....
  2. To change the animation duration, you should build your own TransitionGenerator, You should check the code of the RandomTransitionGenerator. It should be fairly straightforward.
  3. To be notified when a transition ends: setTransitionListener should work.

Have a great day!

@GauravCreed
Copy link
Author

GauravCreed commented Oct 26, 2019

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. (_)

@GauravCreed
Copy link
Author

Hi @flavioarfaria

any one can help me?
Thanks. (_)

@flavioarfaria
Copy link
Owner

Hi @GauravCreed,

The transitions are generated randomly. If you want to determine exactly how transitions should behave, you should follow these hints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants