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

How to change the frequency of the waves ? #13

Closed
caminin opened this issue May 24, 2016 · 7 comments
Closed

How to change the frequency of the waves ? #13

caminin opened this issue May 24, 2016 · 7 comments

Comments

@caminin
Copy link

caminin commented May 24, 2016

This widget is truly beautiful, but i need to lower the frequency of the waves, because there are many things shown on my screen and I need to have a focus somewhere else.

Is there a way to do it easily ? If not, where can I try to do it ?

Thanks for your work :-D

@tangqi92
Copy link
Owner

Hi,

Lower the frequency of the waves? You can try to use attributes 'wlv_waveAmplitude' in .xml or 'mWaveLoadingView.setAmplitudeRatio()' in .java

Hope this will achieve the effect you want.:D

@caminin
Copy link
Author

caminin commented May 24, 2016

I was thinking about one wave every ten seconds, i already tried to use waveAmplitude and it was nearly enough, but i want to try something else.

I'm wondering if it's possible to do this :

  1. one wave
  2. three seconds with nothing
  3. Another wave

@tangqi92
Copy link
Owner

Oh, I see what you mean, but this demand sounds a bit strange.

Now I'm trying to fix an urgent bug, if time permits, I will try to try to achieve the effect you want.

Thank you for your support.

@caminin
Copy link
Author

caminin commented May 24, 2016

Ok, don't spend too much time on it, your work is good as it is now. Good luck with your bug !

@radaced
Copy link

radaced commented May 27, 2016

It's not exactly the same request, but it would also be cool to adjust the animation duration of the wave. As far as I saw in your code it is fixed to 1 sec (1000msec). If you could add a simple parameter to adjust this value as well that would be great.

Anyways thanks for the work and great job. 👍

@tangqi92
Copy link
Owner

tangqi92 commented Jan 6, 2017

Hi @caminin @radaced

I am very very sorry to reply to you so late.

I just updated the library to v0.3.5, now it supports to change the frequency of the waves .

You just need to call the method 'setAnimDuration()'.

I hope you will like it.
Finally, thank you for your support.

@caminin
Copy link
Author

caminin commented Jan 6, 2017

Thx a lot, It's gonna be really useful !

@caminin caminin closed this as completed Jan 6, 2017
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