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

setvalue does not work while animating #150

Open
zaferaydn opened this issue Aug 7, 2018 · 0 comments
Open

setvalue does not work while animating #150

zaferaydn opened this issue Aug 7, 2018 · 0 comments

Comments

@zaferaydn
Copy link

I could not make it work that setting the value of gauge while it is still animating.
I use following code to create the gauge:

Gauge gauge = GaugeBuilder.create()
.decimals(0)
.prefSize(75, 75)
.skinType(Gauge.SkinType.FLAT)
.animated(true)
.minValue(0)
.maxValue(100)
.value(0)
.valueColor(Color.WHITE)
.build();

Then I set the value to 70.
gauge.setValue(70);
While value is being set with animation, I set it to 10 by a button click.
gauge.setValue(10);
But value is not being set to 10 after animation. In the documantation it says that:

Sets the value of the Gauge to the given double. If animated == true this value will be the end value after the animation is finished.

I understand It should set the value just after animation ends. Is it right? How can achive setting value while animation is still progress?

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

1 participant